I need to change this array's keys to 0-5, why isn't this working?
$arr = array();
while(count($arr) < 6){
$arr[] = rand(1,53);
$arr = array_unique($arr);
}
asort($arr);
$i = 0;
foreach($arr as $key => $value){
//echo $i;
$key = $i;
$i++;
}
print '<pre>';
print_r($arr);
Thank you