This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP and JSON

PHP - json_encode()

{"Peter":35,"Ben":37,"Joe":43}

<?php
// create $age array
$age = array("Peter"=>35, "Ben"=>37, "Joe"=>43);

// json_encode $age array and display it
echo json_encode($age);
?>