📜  php 从数组中删除元素 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:09.087000             🧑  作者: Mango

代码示例6
//NO KEY supplied
$message array("a", "b", "c", "d");
$del_val = "b";
if (($key = array_search($del_val, $messages)) !== false) {
    unset($messages[$key]);
}