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 deal with a run at least once when I'm coding
and
On 12/25/2012 7:21 PM, Ken Arck wrote:
So I cannot do nested do loops in php?
?php
$a = 0 ;
$b = 0 ;
do {
echo $a\n ;
do {
echo $b\n ;
$b++
}while($b =10) ;
$a++;
}while($a = 20) ;
?
Why do you say that?
--
PHP General Mailing List (http://www.php.net/)
To
2 matches
Mail list logo