Free PHP Tutorials

home
Stay at Home and Learn

Set up an array with mixed values

 
Computer Tutorials List

 

 

 

 

<?PHP

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

?>