Hi, I have a loop, and I was wondering if there is a command with which you can go back to the beginning of the loop and ignore the rest of the code in the loop
Example:
for ($index = 0; $index < 10; $index++) { if ($index == 6) that command to go the start of the loop echo "$index, "; }
should output
1,2,3,4,5,7,8,9 and miss six
kind of the same result as
for ($index = 0; $index < 10; $index++) { if ($index != 6) echo "$index, "; }
is there any team for this?
thanks matthy
source share