Here code (executed in php 5.3.5 and 5.2.13):
$res = array(1, 2, 3);
unset($res[0]);
for($i = 0; $i < sizeof($res); $i++)
{
echo $res[$i] . '<br />';
}
In results i see
<br />2<br />
Why only one element, and first empty? Can`t understand. When doing:
print_r($res);
See:
Array ( [1] => 2 [2] => 3 )
Thanx for help!