PHP Hapus elemen tertentu dari array
if (($key = array_search('strawberry', $array)) !== false) {
unset($array[$key]);
}
Matteoweb
if (($key = array_search('strawberry', $array)) !== false) {
unset($array[$key]);
}
if (($key = array_search('strawberry', $array)) !== false) {
unset($array[$key]);
}