Home  >  Article  >  Backend Development  >  不同浏览器下,$_SERVER数组顺序为什么不一样

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

WBOY
WBOYOriginal
2016-06-23 13:53:061171browse

print_r($_SERVER)试试,数组排序在chrome和ie下不同,为什么


回复讨论(解决方案)

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

不过这又什么关系呢?


你应该看F函数源码。。。。。
没有返回值,所以默认为空

我感觉这个没关系的,顺序不重要重要的是体现出来的数组内容是否一致。

,。。。。。发错帖子了!!!!!

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