How can I decode json in PHP 5.1?

前端 未结 8 949
孤街浪徒
孤街浪徒 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:50

    The Zend framework has Zend_Json. At least it used to a couple of years ago.

    http://framework.zend.com/download

    You can just pull out the JSON library and use it in a standalone manner.

提交回复
热议问题