Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<?php
$arr = [4=>10,1=>22,9=>55,0=>255];
$newArr= array_values($arr);
echo '<pre>';
var_dump($newArr);
echo '<hr>';
//使用foreach循环
$newArr = [];
foreach($arr as $k=>$v){
array_push($newArr,$v);
}
echo '<pre>';
var_dump($newArr);
?>