Free PHP Tutorials

home
Stay at Home and Learn

Set up an array with your own Keys

 
Computer Tutorials List

 

 

 

 

<?PHP

$seasons = array(1 => "Autumn", 2 => "Winter", 3 => "Spring", 4 => "Summer");
print $seasons[1] . " ";
print $seasons[2] . " ";
print $seasons[3] . " ";
print $seasons[4];

?>