Convert JSON string to Array in php
$json_string = '{
"title": "PHP: The Definitive Guide",
"author": "Arun Verma",
}';
$res= json_decode($json, true);
echo $res
['title']; //PHP: The Definitive Guide
$json_string = '{
"title": "PHP: The Definitive Guide",
"author": "Arun Verma",
}';
$res= json_decode($json, true);
echo $res
['title']; //PHP: The Definitive Guide
Comments
Post a Comment