Create base.php
This commit is contained in:
parent
b3b560356d
commit
26d1524819
16
system/base.php
Normal file
16
system/base.php
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user