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_decode()

object(stdClass)#1 (3) { ["Peter"]=> int(35) ["Ben"]=> int(37) ["Joe"]=> int(43) }

<?php
// define $jsonobj
$jsonobj = '{"Peter":35,"Ben":37,"Joe":43}';
 
// json_decode $jsonobj and display it
var_dump(json_decode($jsonobj));
?>