Source Code:
(back to article)
<?php // An associative array $marks = ["John" => 68, "George" => 75, "David" => 65, "Roger" => 40]; echo json_encode($marks); ?>
Result:
Report an issue