Skip to main content
Topic: number_to_words issue (Read 1621 times) previous topic - next topic

number_to_words issue

I have this code :
...
$total=4654;
   print "<b>".to_number($total,$lang="en")."</b>";
   print "<b>".number_to_words($total,$lang="en")."</b>";
...

it returns
...
Error 500
Server Error
Error Message   Class 'NumberFormatter' not found

how to make it work?
where is NumberFormatter as file ?
where to check what languages are as options $lang="en"?

Re: number_to_words issue

Reply #1
@dobsun

It sounds like your php intl extension is not installed..

Re: number_to_words issue

Reply #2
Thanks!