php getallheaders使用注意事项
2020-12-13 14:28
标签:blog http get 使用 cti name This function is an alias for apache_request_headers(). Please read the apache_request_headers() documentation for more information on how this function works. so if you want to use this function in any platform,you should detect if it is exists: php getallheaders使用注意事项,搜素材,soscw.com php getallheaders使用注意事项 标签:blog http get 使用 cti name 原文地址:http://www.cnblogs.com/libmw/p/3794157.htmlif (!function_exists(‘getallheaders‘))
{
function getallheaders()
{
$headers = ‘‘;
foreach ($_SERVER as $name => $value)
{
if (substr($name, 0, 5) == ‘HTTP_‘)
{
$headers[str_replace(‘ ‘, ‘-‘, ucwords(strtolower(str_replace(‘_‘, ‘ ‘, substr($name, 5)))))] = $value;
}
}
return $headers;
}
}
上一篇:python递归函数
下一篇:树状数组 :单点修改,区间查询