<?php
$arr = [‘C‘,‘D‘,‘E‘];
echo ‘原数组有‘, count($arr), ‘个成员‘;
echo ‘他们是:‘, implode(‘,‘,$arr);
$length = array_unshift($arr,‘A‘,‘B‘);
echo ‘现有‘,$length, ‘个成员‘;
echo ‘他们是:‘,implode(‘,‘, $arr);
$arr = [‘id‘ => 1, ‘unsername‘ => ‘tom‘];
array_unshift($arr,22,true);
print_r($arr);
$arr = [‘C‘,‘D‘,‘E‘];
array_push($arr,‘F‘,‘G‘);
print_r($arr);
$arr = [‘C‘,‘D‘,‘E‘];
$value = array_shift($arr);
echo $value;
print_r($arr);