Answers for "do we have json_decode in php"

PHP
18

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
-1

json stringify php decode

$postedData = $_POST["JSONfullInfoArray"];
$tempData = str_replace("\", "",$postedData);
$cleanData = json_decode($tempData);
var_dump($cleanData);
Posted by: Guest on October-06-2020

Code answers related to "do we have json_decode in php"

Browse Popular Code Answers by Language