Converting numbers to words?


#1

Continuing the discussion from [Solved] Converting numbers to words:

Hello everyone

where I can insert the code ?

thank you very much


#3

Read the original topic. It’s mentioned in the first sentence.


#4

Thank you for your answer, I add it in C: \ Users \ samy.dridi \ Downloads \ v1.5.3.zip \ ip \ application \ views \ invoice_templates \ pdf \ or I add the code in source code (invoicePlane. php) ?

sorry I’m beginner please help me


#5

Hello.
I found another solution and much easier for me:

<?php $TotalByWords = new NumberFormatter("en", NumberFormatter::SPELLOUT); $num = $invoice->invoice_total; list($int, $dec) = explode('.', $num); ?>

Total: <?php echo $TotalByWords->format($int) . " EUR " . $dec . " ct."; ?>