First PHP program, any suggestions?
<p>Below is the first program that I've made in PHP. Please let me know if there are any other improvements or consolidations that can be made. Thank you for your time.</p>

<pre><code>&lt;?php
    $ages = array();
    $agesfile = fopen("agelist.txt", "r");
    while (!feof($agesfile) {
        array_push($ages, intval(fgets($agesfile)));
    }
    $total = 0;
    for ($i = 0; $i &lt; count($ages); $i++) {
        $total += $ages[$i];
    }
    echo($total / count($ages) . "&lt;br/&gt;\n");
    fclose($agefile);
?&gt;
</code></pre>
