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. &reftitle.returnvalues; Returns a JSON encoded string on success. &reftitle.examples; A <function>json_encode</function> example 1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); echo json_encode($arr); ?> ]]> &example.outputs; &reftitle.seealso; json_decode