Update base.php

This commit is contained in:
Namhyeon Go 2020-04-12 18:34:52 +09:00 committed by GitHub
parent eb5cebf360
commit c38ea4bb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ if(!is_fn("array_key_is_array")) {
}
// example: array_key_unset(array_search("apple", $fruits), $fruits);
if(!check_function_exists("array_key_unset")) {
if(!is_fn("array_key_unset")) {
function array_key_unset($key, &$array) {
if(array_key_exists($key, $array)) {
unset($array[$key]);