Answers for "php parse string into json"

PHP
19

php parse json

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

$person = json_decode($personJSON);

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

parse json phph

echo json_decode("[1,2,3]")[0];
Posted by: Guest on January-15-2020
0

php json decode

$obj = json_decode("{string:'string'}");
Posted by: Guest on March-08-2021

Browse Popular Code Answers by Language