I have this code trying to search each layer for a specific string:
I put in the echo $key and $value to see if it's opening each layer, which it is. But it's printing off blanks at the echo $found[$key]. I've tried a few different variations. I put in the letter o as a search term just to see if it's working.PHP Code:$found = array();
if(is_array($newlist)){
foreach ($newlist as $key => $value){
echo $key.'<br />';
if(is_array($newlist[$key])){
foreach ($newlist[$key] as $key => $value){
echo ' '.$value.'<br />';
$found[$key] = array_search('o', $value);
echo ' '.$found[$key].'<br />';
}
}
}
}




Bookmarks