The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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). |
#2
|
||||
|
||||
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:
|
#3
|
|||
|
|||
Could you post some code samples, because it is for sure possible to create nested loops.
|
#4
|
||||
|
||||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|