JSON in PHP5?
| From: | Dan Zilavy | Date: | Fri, 26 Sep 2008 14:50:37 +0000 |
| Subject: | JSON in PHP5? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-280979@lists.php.net to get a copy of this message | ||
I thought that the json extensions where in >=PHP5.2. Here's my example file and the
output. What's up? Do I need to install something else.
file:
<?php
echo "PHP version: ", phpversion(), "<br/>";
if (function_exists('json_encode'))
echo "json_encode() exists";
else
echo "json_encode() doesn't exist";
?>
output:
PHP version: 5.2.5
json_encode() doesn't exist