Home >Backend Development >PHP Tutorial >不同浏览器下,$_SERVER数组顺序为何不一样

不同浏览器下,$_SERVER数组顺序为何不一样

WBOY
WBOYOriginal
2016-06-13 12:03:08805browse

不同浏览器下,$_SERVER数组顺序为什么不一样
print_r($_SERVER)试试,数组排序在chrome和ie下不同,为什么


------解决方案--------------------
$_SERVER 中以 HTTP_开头的键都是请求方传递过来的
排列的次序不同应该是请求的 http 协议头中排列次序有关

不过这又什么关系呢?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn