function getHeaders(){
$header = [];
foreach ($_SERVER as $k => $v){
if(strpos($k,'HTTP_') !== false){
$header[$k] = $v;
}
}
return $header;
}
function getHeaders(){
$header = [];
foreach ($_SERVER as $k => $v){
if(strpos($k,'HTTP_') !== false){
$header[$k] = $v;
}
}
return $header;
}
转载于:https://my.oschina.net/u/3103453/blog/3017764