Answers for "how to get data from json in php"

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
5

php return json

header('Content-type: application/json');
echo json_encode($array);
Posted by: Guest on March-20-2020

Code answers related to "how to get data from json in php"

Browse Popular Code Answers by Language