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
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
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
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.
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
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
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
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
8 matches
Mail list logo