Answers for "read JSON with 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
5

php return json

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

how to receive json data in php

$data = json_decode(file_get_contents('php://input'), true);
print_r($data);
echo $data;
Posted by: Guest on November-01-2020
2

how to get data from json array in php

$data = json_decode($json);
Posted by: Guest on August-15-2020
0

parse json phph

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

Browse Popular Code Answers by Language