I am trying to convert total into words and it gives me a wrong output.
I have to pass this in which is in laravel blade template into words
Here is my code
@php
$num = $receipt_details->total;
$f = new NumberFormatter("en", NumberFormatter::SPELLOUT);
echo $f->format($num);
@endphp
The output I get is Zero for all the totals.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3m2veFh
via IFTTT
Aucun commentaire:
Enregistrer un commentaire