array_push
向数组尾部压入元素 ,然后返回新数组的长度
$a=array("red","green");
$array_len = array_push($a,"blue","yellow"); print_r($a);//Array ( [0] => red [1] => green [2] => blue [3] => yellow )
print_r($array_len);// 4
输出数组中的第一个元素和最后一个元素的值
$people = array("Bill", "Steve", "Mark", "David");
echo current($people) . "<br>";
echo end($people);