Re: [PHP] Nested loopa

2012-12-27 Thread Jim Giner
On 12/27/2012 1:29 PM, Matijn Woudt wrote: On Thu, Dec 27, 2012 at 4:42 PM, Tedd Sperling wrote: On Dec 26, 2012, at 10:09 AM, Jim Giner wrote: While I fully understand the purpose of the do...while construct, I just never get used to seeing it used. (in other langs I had to deal with a 'r

Re: [PHP] Nested loopa

2012-12-27 Thread Matijn Woudt
On Thu, Dec 27, 2012 at 4:42 PM, Tedd Sperling wrote: > On Dec 26, 2012, at 10:09 AM, Jim Giner > wrote: > > > While I fully understand the purpose of the do...while construct, I just > never get used to seeing it used. (in other langs I had to deal with a > 'repeat...until construct and dis-lik

Re: [PHP] Nested loopa

2012-12-27 Thread Jim Giner
On 12/27/2012 10:47 AM, Curtis Maurand wrote: A while loop is a blocking call. Be careful with them. --Curtis Huh? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested loopa

2012-12-27 Thread Curtis Maurand
A while loop is a blocking call. Be careful with them. --Curtis Tedd Sperling wrote: >On Dec 26, 2012, at 10:09 AM, Jim Giner >wrote: > >> While I fully understand the purpose of the do...while construct, I >just never get used to seeing it used. (in other langs I had to deal >with a 'repeat.

Re: [PHP] Nested loopa

2012-12-27 Thread Jim Giner
On 12/27/2012 10:42 AM, Tedd Sperling wrote: On Dec 26, 2012, at 10:09 AM, Jim Giner wrote: While I fully understand the purpose of the do...while construct, I just never get used to seeing it used. (in other langs I had to deal with a 'repeat...until construct and dis-liked that also). I p

Re: [PHP] Nested loopa

2012-12-27 Thread Tedd Sperling
On Dec 26, 2012, at 10:09 AM, Jim Giner wrote: > While I fully understand the purpose of the do...while construct, I just > never get used to seeing it used. (in other langs I had to deal with a > 'repeat...until construct and dis-liked that also). I pretty much know if > I'm going to have to

Re: [PHP] Nested loopa

2012-12-25 Thread Jim Lucas
On 12/25/2012 4:21 PM, Ken Arck wrote: So I cannot do nested do loops in php? You have a typo. Line 8 What are you expecting as output? -- Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested loopa

2012-12-25 Thread Simon J Welsh
On 26/12/2012, at 1:21 PM, Ken Arck wrote: > So I cannot do nested do loops in php? > > $a = 0 ; > $b = 0 ; > do { > echo "$a\n" ; > do { > echo "$b\n" ; >$b++ > }while($b <=10) ; >$a++; > }while($a <= 20) ; > ?> You can, though you're never resetting the value

[PHP] Nested loopa

2012-12-25 Thread Ken Arck
So I cannot do nested do loops in php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php