public static function checkEmpty($value) {
if(!isset($value))
return true ;
if($value === null )
return true;
if(is_array($value) && count($value) == 0)
return true;
if(is_string($value) &&trim($value) === "")
return true;
return false;
}
is_numeric — 检测变量是否为数字或数字字符串