![]() |
Need help on nested loop!
Could somebody overhere expalin how nested loop works because i am quite confuse on this issue?:-/
|
Nested:
1) A process or activity self-contained within a larger entity, that retains its identity and characteristics for reporting and analysis. 2) Nested is the seventh studio album by Bronx-born singer, songwriter, and pianist Laura Nyro, released in 1978 by Columbia Records. What in particular about it are you having trouble with? -m |
A nested loop is a loop inside a loop. For instance, if you are reading posts on a forum sequentially, you would read:
Topic 1 Post 1 Topic 2 Post 1So on the so forth. If you want a purely programmatic example, run this code. PHP Code:
http://justanotherportfolio.com/nest.php |
A nested loops is a loop that has a loop within it. First of all the outer loop's first iteration triggers the inner loop then the inner loop continues until completion, then the outer loop cycles again thus causing the inner again to trigger again.
put into a simple example: PHP Code:
Code:
Line 1 01234hope i made that helps |
damn village beat me! lol the code looks similar aswell, anyway both posts should help you understand
|
| All times are GMT. The time now is 10:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0