脚本宝典收集整理的这篇文章主要介绍了php – 在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()基本上是作为手动状态的C库函数strfmon()的包装.
如果你查看评论,那就是an implementation by Rafael M. Salvioni.值得一试.您可以使用function_exists()检查是否已经定义.
this StackOverflow question的答案给出了更多的(甚至更好的)替代方案(thx danielson317).
以上是脚本宝典为你收集整理的php – 在money_format函数中发生致命错误全部内容,希望文章能够帮你解决php – 在money_format函数中发生致命错误所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。