I am facing a situation like this (( extracted from php docs ))
Using continue statement in a file included in a loop will produce an error. For example:
// main.php
for($x=0;$x<10;$x++)
{ include('recycled.php'); }
// recycled.php
if($x==5)
continue;
else
print $x;
it should print "012346789" no five, but it produces an error:
Cannot break/continue 1 level in etc.
there is a solution for this??, i mean i need to "process" recycled.php in this way, where the use of continue statement not cause this error, remember this is easy understandable sample code, in the real case i need to find a way to continue the loop of the main.php file. .
continueis for loop statements only