What I want to do is following.
Lets say we have array like that
$arr=array();
$arr[1]['test1']="something";
$arr[1]['test2']="something else"
…
$arr[2]['test1']="blah blah";
$arr[2]['test2']="foo bar"
…
I want to echo them one by one like that
something something else ... <all elements of $arr[1]>
blah blah foo bar ... <all elements of $arr[2]>
BUT!
if($arr[1]['test1']=="something")
don't echo elements of $arr[1] at all
Is that possible by new array creation in which $arr[1] doesn’t exist at all? Or during echo?
Maybe this should do the trick:
The
continuecall will jump to the next iteration, so it will skip the array if it contains the “something” element