george Posted November 17, 2008 Share Posted November 17, 2008 I have my basic while: $i = 1;while ($i <= 10): echo $i; $i++;endwhile; where I count up to ten. But suppose I want to skip six. I do not want the if ($i!=6) echo $i solution. I want to catch the condition, increment the internal array pointer, and restart execution right after the while. The 'next' command comes close to this, but it does not stop execution of the loop at that point and restart execution at the top of the while. Link to comment Share on other sites More sharing options...
george Posted November 17, 2008 Author Share Posted November 17, 2008 CONTINUE is what I was looking for. ThanksProb solved. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.