Home  >  Article  >  Backend Development  >  大数组作数组下标时的有关问题

大数组作数组下标时的有关问题

WBOY
WBOYOriginal
2016-06-13 12:45:05841browse

大数组作数组下标时的问题
测试代码如下:

$int  = 135893597710;<br />
print_r($int);<br />
print_r(array($int=>1));


输出结果在windows上是135893597710Array ( [-1545355762] => 1 )
到linux的时候就能得到正确的结果135893597710Array ( [135893597710] => 1 )


请问如何可以在windows上得到正确的结果

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