Answers for "javascript json encode php decode"

PHP
20

php json_decode

$personJSON = '{"name":"Johny Carson","title":"CTO"}';

$person = json_decode($personJSON);

echo $person->name; // Johny Carson
Posted by: Guest on July-01-2019
0

php parse json

// scrap this:
$data = json_decode($rawdata);

// use this:
$data = json_decode($rawdata, true);
echo $data["key1"];
Posted by: Guest on March-03-2022

Code answers related to "javascript json encode php decode"

Browse Popular Code Answers by Language