From 2abb8037fe7d4268b77577b6149e68b6a4f0cf2c Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 4 Jun 2018 19:13:37 +0900 Subject: [PATCH] Update base.php --- system/base.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/system/base.php b/system/base.php index 94fe99c..c130728 100644 --- a/system/base.php +++ b/system/base.php @@ -134,6 +134,20 @@ if(!function_exists("array_key_empty")) { } } +if(!function_exists("array_key_equals")) { + function array_key_equals($key, $array, $value) { + $equals = false; + + if(is_array($array)) { + if(!array_key_exists($key, $array)) { + $equals = ($array[$array] == $value); + } + } + + return $equals; + } +} + if(!function_exists("array_multikey_empty")) { function array_multikey_empty($keys, $array) { $flag = false;