php7 in the json json_encode function usage

php7 in the json json_encode function usage

json_encode - JSON encoding of variables

$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>"96net.com.cn");

echo json_encode($arr);

The above example will output:

{"a":1,"b":2,"c":3,"d":4,"e":"96net.com.cn"}

Guess you like

Origin blog.51cto.com/13959155/2462722