Re: Array...

From: Date: Mon, 15 Jan 2001 22:17:18 +0000
Subject: Re: Array...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34704@lists.php.net to get a copy of this message
On Mon, 15 Jan 2001 13:57:04 -0800 (PST), jeremy brand (jeremy@nirvani.net) wrote: >for ($i=100; $i>0; $i++) > print "<OPTION VALUE=\\\"$i\\\"></OPTION>\n"; > >But, I presume you would rather do this: >for ($i=100; $i>0; $i++) ^^^ should be $i-- > print "<OPTION VALUE=\"$i\"></OPTION>\n"; or how about: <?for($i=100; $i>0; $i--){?> <OPTION VALUE="<?echo $i?>"></OPTION> <?}?>

« previous php.general (#34704) next »