Array.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Array</title>
</head>

<body>
<p>There are several girls want to go out with me but only the hottest can.</p>
<p>Lets rate them on a scale</p>
girl1 is a 6<br>
girl2 is a 5<br>
girl3 is a 8<br>
girl4 is a 7<br>
girl5 is a 7<br>
girl6 is a 4<br>
girl7 is a 10<br>
girl8 is a 9<br>

<?php

$girl
[0]= 6;
$girl[1]= 5;
$girl[2]= 8;
$girl[3]= 7;
$girl[4]= 7;
$girl[5]= 4;
$girl[6]= 10;
$girl[7]= 9;


echo 
"<p>";
echo 
"There are ".count($girl)." girls that want to go out with me.";
echo 
"</p>";





for (
$counter=0$counter count($girl) ; $counter=$counter+1)
{
    if (
$girl[$counter] >8)
    {
    
    print(
"This girl has a hot date ".($counter+1)."!<br>");
    }
}
?>
</body>
</html>