Answers for "json_decod php"

20

php json_decode

$personJSON = '{"name":"Johny Carson","title":"CTO"}';

$person = json_decode($personJSON);

echo $person->name; // Johny Carson
Posted by: Guest on July-01-2019
0

json_decode

<?php
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
 
var_dump(json_decode($json));
var_dump(json_decode($json, true));
 
?>
Posted by: Guest on November-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language