$val){ if(false === self::check_empty($val)) { $content .= "{$key}{$val}"; } } $content .= "key=".config::APP_SECRET; return strtoupper(md5($content)); } public static function check_empty($value) { if (!isset($value)) return true; if ($value === null) return true; if (trim($value) === "") return true; return false; } }