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

Apexcharts not re-render after ajax call - Solved

Redirect http to https in codeigniter