Javascript debugger
Website design
↑
The value being encoded. Can be any type except a resource.
This function only works with UTF-8 encoded data.
<?php
$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);
echo json_encode($arr);
?>
The above example will output:
{"a":1,"b":2,"c":3,"d":4,"e":5}
json_decode() |