Returns a string containing the JSON representation of $value.
declaration of json_encode
string json_encode ( mixed $value [, int $options ] )
test json_encode online
comments for json_encode
On 17. May 2016 14:59 some1 wrote:
a nested array in a nested array does not work. array(array(array())) does not result in [[]] but in 'array(array(array()))'
On 18. Jul 2015 01:45 jacko wrote:
i can't seem to get the syntax right in my php for cleaning a text input with jason_encode prior to inserting it into the database. Can you advise?
On 16. Jul 2014 19:03 myselfhimself wrote:
Hello ! Thank you very much for that awesome website !!!! : ) It would be nice to have fields for $options and $depth optional parameters : ) Those were added in PHP 5.4 and 5.5 respectively. Take care !!
more comments for json_encode
There are some more comments for json_encode(). To see them all click here.