php-general | 2001032

[PHP] Can a WHILE be done inside an array? From: Kenneth R Zink II (Hellcat1 <email protected>)
Date: 03/31/01

I'm trying to figure out how to do a WHILE inside of an array.

Here is the while statement.

$modyear = "1982";
$curyear = date("Y");
$curyear = $curyear + 1;

while($modyear <= $curyear){
echo "<option>".$modyear.;
$modyear++;
}

The array I want to use the WHILE in, looks like this. The X is where I
want to insert the WHILE.

'year' => array('Year','12','keyword','1:30','select','X','text'),

Here is what a functioning array statment in my script looks like for
referance.

'make' =>
array('Make','12','keyword','1:30','select','<option>Chevrolet<option>GMC<op
tion>Isuzu<option>Oldsmobile','text'),

Can someone please give me some pointers. =)

Thanks.

Kenneth R Zink II Hellcat1 <email protected> ICQ# 5095094
'87 GMC S-15 Ext. Cab (Hurricane) ...BBC 524 being built !!!
http://www.s-series.org/htm/windstorm/project-windstorm.htm
'85 Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI !!!
http://www.s-series.org/htm/firestorm/firestorm.htm
'84 Oldsmobile Delta 88 Delta 88 Royal Brougham.
Racing by the grace of God!!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>