if (($key = array_search('strawberry', $array)) !== false) { unset($array[$key]); }
$array=array_diff($array,['strawberry']);