![]() |
Does PHP 5.x allow nested loops?
Cause 4 sure as hell don't and it's annoying the crap out of me. I've found you can next a foreach in a while, and then nest that in a for loop, but beyond that you're SOL. I'm writing a vote counting program and I need to have a four layer deep nested loop.
I'm so fustrated with it I'm about ready to write a visual basic program to do the job (I know how to set up the MyOBDC driver to do it). |
I may be barking up a tree - however as far as I know you can nest all you want. FOr instance, this is perfectly valid and works:
PHP Code:
|
Could you post some code samples, because it is for sure possible to create nested loops.
|
Nevermind, I strategically placed some echo statements to throw back the counters to the screen in the loops - it is looping, something else is wrong :(
|
All times are GMT. The time now is 01:30 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:
|