<?php $array = array(0 => "a", 1 => "b", 2 => "c"); unset($array[1]); //↑ 你要刪除的陣列元素值的鍵 print_r($array); ?> 輸出結果:
確定! 回上一頁