📜  php 按值删除数组项 - PHP 代码示例

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

代码示例3
$colors = arrray("blue","green","red");
if(($key = array_search("greeb",$colors)) !== false)
{
unset("$colors[$key]);
}