Json_encode()在PHP 5.1中不起作用? [英] Json_encode() not working in PHP 5.1?
本文介绍了Json_encode()在PHP 5.1中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何在PHP 5.1中解码json?
我正在使用json_encode函数,它在我的本地主机中正常工作...当我移到服务器时,它不工作...我用Google搜索,发现它不支持5.1版本...我想使用此函数.还有其他可能吗?我需要升级到5.2还是wat?
解决方案
是的,json_encode
在PHP 5> = 5.2.0中可用,您必须升级(推荐)或找到实现该功能的库.>
Possible Duplicate:
How can I decode json in PHP 5.1?
I am using json_encode function it works fine in my localhost...when i moved to server it not working ...I googled and find out that its does not support 5.1 version ...I want to use this function .any other possibility?wheather i need to upgrade to 5.2 or wat?
解决方案
Yes json_encode
is available in PHP 5 >= 5.2.0, you must either upgrade (recomended) or find a library that implements the functionality.
这篇关于Json_encode()在PHP 5.1中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文