First let me say that I have gone through a lot of related question on here but none of them solve my issue. I have and php nested array in db and need to print the all the values. the output prints out the first top most array (which is the 'name', and values "Office , home") but does not get the nested array values which is contained in 'BB". this is my code:
function getTB($name='', $value='') {
$value = json_decode($value);
$name = ''; $BB= '';
foreach ($value as $key=>$val) {
$name .= $val['name'].',';
JSON code:
[{"name":"Office","TB":[{"date":[false,true],"time":"8:00 AM"}]},{{"days":[false,true],"time":"6:00 PM"},
print_rorvar_dumpmay be of use (uk3.php.net/print_r uk3.php.net/var-dump)json_encode?