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

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

WBOY
Release: 2016-06-13 12:45:05
Original
870 people have browsed it

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

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


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


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template