CodeLobster IDE http://codelobster.com/forum/ |
|
Numbers to letters http://codelobster.com/forum/viewtopic.php?f=3&t=24386 |
Page 1 of 1 |
Author: | ponsumkey [ Tue Sep 25, 2018 1:57 am ] |
Post subject: | Numbers to letters |
Hi, I need a function php to converter number to letter(String). For example: I have 250 and I want to response Duecentocinquanta in my string ($decod). Thanks Thanks Thanks |
Author: | Admin [ Wed Sep 26, 2018 12:26 pm ] |
Post subject: | Re: Numbers to letters |
Hi. You should use NumberFormatter class http://php.net/manual/en/class.numberformatter.php Code: = new \NumberFormatter("it-IT", \NumberFormatter::SPELLOUT); echo ->format(250); // due¬cento¬cinquanta Regards, Codelobster Team. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |