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

Comments

Popular posts from this blog

Stop video playing when Bootstrap modal is closed