<?php $array = array(0 => "a", 1 => "b", 2 => "c"); unset($array[1]); //↑ 你要删除的数组元素值的键 print_r($array); ?> Array ( [0] => a [2] => c )
本文标题:删除数组元素
本文链接:https://www.haomeiwen.com/subject/evxlpktx.html
网友评论