php read json file code example
Example 1: php decode json file
$json = json_decode(file_get_contents('/path/to/your/file.json'));
Example 2: parse json phph
echo json_decode("[1,2,3]")[0];
$json = json_decode(file_get_contents('/path/to/your/file.json'));
echo json_decode("[1,2,3]")[0];