Create base.php

This commit is contained in:
Namhyeon Go 2018-01-01 01:15:38 +09:00 committed by GitHub
parent b3b560356d
commit 26d1524819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
system/base.php Normal file
View File

@ -0,0 +1,16 @@
<?php
if(function_exists('array_key_empty')) {
function array_key_empty($key, $array) {
$empty = true;
if(is_array($array)) {
if(array_key_exists($key, $array)) {
if(!empty($array[$key])) {
$empty = false;
}
}
}
return $empty;
}
}