/**
* 获取请求头信息
* @return string
*/
if (!function_exists('getallheaders'))
{
function getallheaders()
{
foreach ($_SERVER as $name => $value)
{
if (substr($name, 0, 5) == 'HTTP_')
{
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
}
}
return $headers;
}
}
本文为Jsky原创文章,转载无需和我联系,但请注明来自Jsky博客 www.tjin.link