remove a specific element from an array php code example
Example: php remove specific element from array
if (($key = array_search('strawberry', $array)) !== false) {
unset($array[$key]);
}
if (($key = array_search('strawberry', $array)) !== false) {
unset($array[$key]);
}