Find my Json code.
$result = {
"text_1":
[
{
"text": "Name
KarSho",
"left": 0,
"right": 0
}
]
}
I want "text" from this Json in PHP. I used following script,
$json = json_decode($result,true);
if($json && isset($json['text_1']))
{
$textblock =$json['text_1'][0];
echo $textblock['text'];
}
It's giving,
Name KarSho
But I want,
Name KarSho
What to do?