Re: Nested loopa

From: Date: Wed, 26 Dec 2012 02:47:04 +0000
Subject: Re: Nested loopa
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-319952@lists.php.net to get a copy of this message
On 12/25/2012 4: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) ; ?>
You have a typo. Line 8 What are you expecting as output? -- Jim Lucas

« previous php.general (#319952) next »