Answers for "get json variable from json file php"

PHP
3

read json file data using php

$filedata = file_get_contents('filename.json');
$details = json_decode($filedata);
print_r($details);
Posted by: Guest on July-19-2021
0

access json object in php

$character = json_decode($data);
echo $character->name;
Posted by: Guest on November-10-2021

Browse Popular Code Answers by Language