json_encode ? Returns the JSON representation of a value

By | June 1, 2014

json_encode function will returns a string containing the JSON representation of a value.it supports only UTF-8 encoded

See the Example here

Output:
——-

{“v1″:1,”v2″:2,”v3″:3,”v4″:4,”v5”:5}