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

Creating Protected routes in ReactJS

Add and use wow.js into WordPress theme