Emmett Posted August 10, 2007 Share Posted August 10, 2007 Is this a correct understanding of program flow in this situation? Quote Link to comment https://forums.phpfreaks.com/topic/64304-solved-rank-beginner-question-about-program-flow/ Share on other sites More sharing options...
akitchin Posted August 10, 2007 Share Posted August 10, 2007 if you want to stay consistent with your labeling, you'd need to add an arrow from the end of the print line to the closing brace (which then proceeds to the $count++), as well as an arrow going from $count=1 to $count < 11, as this is where the program technically begins. Quote Link to comment https://forums.phpfreaks.com/topic/64304-solved-rank-beginner-question-about-program-flow/#findComment-320617 Share on other sites More sharing options...
Barand Posted August 10, 2007 Share Posted August 10, 2007 for ($count=1; $count<11; $count++) { // do something } is equivalent to $count = 1; while ($count<11) { // do something $count++; } Quote Link to comment https://forums.phpfreaks.com/topic/64304-solved-rank-beginner-question-about-program-flow/#findComment-320620 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.