Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
$arr1 = [1,5,8,9,12,15];
$arr2 = [4,6,8,11,12,16];
$arr = array_intersect($arr1, $arr2);
print_r($arr);
echo '<hr>';
$arr1 = ['id'=> '1'];
$arr2 = ['name'=>'老李','sex'=>'男','age'=>17];
$arr = array_merge($arr1,$arr2);
print_r($arr);
echo '<hr>';
$arr = ['string1','string6','string3','string12','string8'];
natsort($arr);
print_r($arr);
echo '<hr>';
$arr = ['name'=>'老李','sex'=>'男','age'=>17,'score'=>12];
print_r(array_rand($arr,2));
echo '<hr>';
$arr = [1,2,3,4,5,6,7];
print_r(shuffle($arr));
echo '<hr>';