PHP generate json – list of categories [closed]

You are looking for json_encode(). Passing an associative array to it will return a JSON representation.

http://us1.php.net/json_encode

Leave a Comment