![]() |
exiting a loop early
i saw mist ask for this once but couldn't find the thread :(
anyhoo i have a loop but i want to exit it early as the query it's using is used for a few more things other than this loop. i.e. table = 20 rows, loop = 4 rows not sure about the best way to explain it but if someone could tell me how to do this i'd be eternally grateful :) |
Quote:
In a while(), for() or foreach() loop you can use break; to break out of it. Pseudo-code: PHP Code:
|
thanks tubedogg, it was indeed a while :)
|
All times are GMT. The time now is 01:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|