Update base.php

This commit is contained in:
Namhyeon Go 2018-02-14 13:45:33 +09:00 committed by GitHub
parent 5ad7a5aca2
commit 415f8fde65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,16 @@ if(!function_exists('array_key_empty')) {
}
}
if(!function_exists('array_multikey_empty')) {
function array_multikey_empty($keys, $array) {
$empty = true;
foreach($keys as $key) {
$empty = ($empty && array_key_empty($key, $array));
}
return $empty;
}
}
if(!function_exists("cut_str")) {
function cut_str($str, $start, $len=0) {
$cutted_str = "";