json_encode
Returns the JSON representation of a value
&reftitle.description;
stringjson_encode
mixedvalue
Returns a string containing the JSON representation of
value.
&reftitle.parameters;
value
The value being encoded. Can be any type except
a resource.
This function only works with UTF-8 encoded data.
&reftitle.returnvalues;
Returns a JSON encoded string on success.
&reftitle.changelog;
&Version;
&Description;
5.2.1
Added support to JSON encode basic types
&reftitle.examples;
A json_encode example
1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);
echo json_encode($arr);
?>
]]>
&example.outputs;
&reftitle.seealso;
json_decode