how to use json_encode without PHP 5.2
Posted
by Ashley Ward
on Stack Overflow
See other posts from Stack Overflow
or by Ashley Ward
Published on 2010-06-10T11:26:52Z
Indexed on
2010/06/10
11:32 UTC
Read the original article
Hit count: 380
I've written a CMS which uses the PHP function json_encode to send some data back via an Ajax Request.
Unfortunately, I'm trying to load it onto a server which is running PHP version 5.1, the json_encode PHP function is not available on versions of PHP before 5.2.0.
Does anyone know of a way to encode a PH array as JSON without using the inbuilt json_encode function?
© Stack Overflow or respective owner