unset last item of array

前端 未结 6 1172
滥情空心
滥情空心 2020-12-18 20:39

in this code i try to unset first and last item of $status array
to unset but the last item that i tried place thier pointer in $end
not unset what can I do for thi

6条回答
  •  北海茫月
    2020-12-18 21:31

    $item[$fieldneedle] = " node_os_disk_danger ";
    $status = preg_split('/_/',$item[$fieldneedle]);
    $status = array_slice($status, 1, -1);
    

提交回复
热议问题