/*
* @version: 1.0
* @author: Nick Smit <nick.smit@quicknet.nl>
* @thanks: Ibrahim Abdullah
* @param: array $array The array to check
* @param: boolean $useKey[optional] false for only value array, true for key-value array, default value is false
* @return: true if no empty values found, false if empty falue is found
*/
function empty_array($array, $useKey = false) {
if(is_array($array)) {
foreach($array as $key => $value) {
$val = ($useKey ? $key : $value);
if(empty($val)) {
return true;
}
}
} else {
return true;
}
return false;
}
/*
* @version: 1.0
* @author: Nick Smit <nick.smit@quicknet.nl>
* @thanks: Ibrahim Abdullah
* @param: array $array The array to check
* @param: boolean $useKey[optional] false for only value array, true for key-value array, default value is false
* @return: true if no empty values found, false if empty falue is found