文章来自:源码在线https://www.shengli.me/php/315.html
Php getallheaders函数
目前 getallheaders() 只能用于 apache 中。如果想在 nginx 中也能使用,可以使用自定义函数。
第二种:
自定义函数