Hi,
I would love to fill an array in PHP just like the way I do in PERL, namely:
$my_arr = array (1 .. 999);
Sure, I could write a function like this,
function return_filled_array($start, $end)
{
if($start>=$end) return 0;
for ($i=$start; $i<=$end; $i++) {
$arr[] = $i;
}
return $arr;
}
but this is not what I want 🙂
Thanks,
Mike