爲什麼會發生此錯誤?在money_format函數中出現致命錯誤
代碼:
setlocale(LC_MONETARY, "en_US");
$pricetotal = money_format("%10.2n", $pricetotal);
服務器的詳細信息。
Apache Version : 2.2.21
PHP Version : 5.3.8
我發現了以下錯誤
Fatal error: Call to undefined function money_format()
你有任何其他代碼?這應該工作;唯一的原因,我可以建議在這個交界處,你是在一個命名空間... –
可能的重複[我們如何可以使用money_format()函數在windows平臺上的php.?](http://stackoverflow.com/questions/6369887/how-we-can-use-money-format-function-in-php-on-windows-platform) – deceze
這是解決方案..它工作.http://www.php.net/manual/en /function.money-format.php#89060 – Parthi04