skip to Main Content

NumberFormatter in PHP vs NumberFormat in JS – CPanel

I seem to be getting very inconsistent results when trying to format currency. In PHP, I'm using https://www.php.net/manual/en/class.numberformatter.php. I have the following demo code: $number = 5125.99; echo getInternationallyFormattedCurrency($number, 'tl-PH', 'PHP'); echo '<br/>'; echo getInternationallyFormattedCurrency($number, 'fil-PH', 'PHP'); echo '<br/>'; echo…

VIEW QUESTION
Back To Top
Search