RE: [PHP] nested for loops

From: Date: Wed, 09 Jul 2003 18:14:20 +0000
Subject: RE: [PHP] nested for loops
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154600@lists.php.net to get a copy of this message
Hi, I did one once. It was similar to what you typed out here. Are you having troubles with this? -Dan Joseph > -----Original Message----- > From: Micah Montoy [mailto:montmica@isu.edu] > Sent: Wednesday, July 09, 2003 1:56 PM > To: php-general@lists.php.net > Subject: [PHP] nested for loops > > > Anyone ever do a nested for loop? > > $i =0; > $j =0; > for ($x=0; $x < 50; $x++){ > echo ("1 to 50"); > > for ($j=0: $j < 5; $j++) { > echo ("less than 5"); > } > } > > I haven't seen a nested loop in PHP, so I'm not sure of the exact syntax. > > thanks > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#154600) next »