FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » while into while
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
while into while [message #176184] Wed, 30 November 2011 14:36 Go to previous message
monsieur madame is currently offline  monsieur madame
Messages: 1
Registered: November 2011
Karma:
Junior Member
Hi,

I need some help with multiple while loops.

I need to set a variable about the count of loops I want.

For example, $i = 3; would do :

while($x[$i-2] < 1) {
while($x[$i-1] < 1) {
while($x[$i] < 1) {
...
}
}
}


and $i = 2 would do :

while($x[$i-1] < 1) {
while($x[$i] < 1) {
...
}
}



I can't find how to do it. I'm pretty sure I miss a small magic
trick....

If someone have an idea... Thanks
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Browser doesn't support
Next Topic: PHP-HTML-Javascript opportunities with Yahoo R&D!!!
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 13:28:29 GMT 2024

Total time taken to generate the page: 0.04931 seconds