I am trying to display single value from array of values.
If I use print_r($arr) it shows this values
{
"a": 14,
"b": 3,
"c": 61200,
"d": [
"2014-04-22 12:00:06",
"2014-04-23 12:00:06",
"2014-04-24 12:00:06"
]
}
But when I tried to use echo $arr->a and $arr['a'].
It shows illegal string offset 'a'.
How to get single value from array of values?