I have this code:
$arr = json_decode($jsondata, TRUE);
$arr2 = $arr['items']['item'];
echo '<ul>';
foreach ($arr2 as $val) {
echo '<li>'.$val[description].'</li>';
}
echo '</ul>';
Which outputs:
- Ann (24/05/2014 - 23/05/2015)
- Late Fee (Added 18/05/2014)
I just want to store 'Ann' in a variable say $plan. I cant seem to get this done. How can I do this?