array_shift()是干什么用的呢?
array_shift() 函数去掉数组的第一个元素。
记忆方法:
array_shift--Shift an element off the beginning of array
实例
/**
* 导出销售利润表
*/
function actionexport(){
if (count($g['goods'])>1){
array_shift($g['goods']);
foreach ($g['goods'] as $key=>$val){
$i++;
}
}
}