General
most used
json_encode
description
Returns a string containing the JSON representation of $value.
declaration of json_encode
string json_encode ( mixed $value [, int $options ] )
test json_encode online
share json_encode
comments for json_encode
On 26. Jul 2017 11:30 fra wrote:
array short syntax doesn't work, ex. json_encode(['key' => 'value'])
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?
more comments for json_encode
There are some more comments for json_encode(). To see them all click here.
+