Source Code:
(back to article)
<?php $array = array("name" => "John", "age" => 30, "city" => "New York"); $json = json_encode($array); echo $json; ?>
Result:
Report an issue