Answers for "php read string json"

PHP
20

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

PHP code to read JSON string on server

$str_json = file_get_contents('php://input');
Posted by: Guest on December-31-2021

Browse Popular Code Answers by Language