How can I decode json in PHP 5.1?

前端 未结 8 964
孤街浪徒
孤街浪徒 2020-12-16 20:10

json_decode function is not part of PHP 5.1, so I cannot use it. Is there any other function for this version?

8条回答
  •  渐次进展
    2020-12-16 20:28

    I ran into problems with the Services_Json extension on PHP 5.1.3, so I found the following library:

    https://github.com/alexmuz/php-json

    It is under LGPL, and after a very quick look does not seem to eval input.

提交回复
热议问题