我正在使用32位php的Windows 64位。使用base_convert我已经转移到64位的Centos 64位PHP返回不同的结果。例如:从Windows 32位移动到Linux 64位,base_convert()问题
<?php
$input = 'f00706ff';
$result = (int)base_convert($input,16,10);
echo $result;
?>
On Win64 PHP32 - > 2147483647;
On CentOS64 PHP64 - > 4026992383;
任何帮助?
有没有一种办法可以让我的Linux表现得像现在的Windows? – Sahil 2012-07-14 03:14:20
不是运行32位版本的PHP。 (这不会很好。) – duskwuff 2012-07-14 04:06:26
检查我的解决方案。有用。 :) – Sahil 2012-07-14 09:22:13