JSON JSON_ENCODE function usage in PHP7

JSON_ENCODE function usage in PHP7

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 routine will output :

{“A”: 1, “B”: 2, “C”: 3, “D”: 4, “E”: “96NET.com.cn”}

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment