Php 大于14个字符数的数组输出

Php 大于14个字符数的数组输出,php,arrays,facebook,Php,Arrays,Facebook,我正在使用facebook fql获取一些数据,这些数据在数组中 当我使用json对结果进行解码时,它会给我这种样式的用户id $result = json_decode($result, true); the result from array is 1.0000148607246E+14 而不是10000148607246 我知道这是同一个数字,但当我使用该结果从facebook请求中获取新数据时,它会给我id错误 现在的问题是如何在php中将1.0000148607246E+14转换为

我正在使用facebook fql获取一些数据,这些数据在数组中 当我使用json对结果进行解码时,它会给我这种样式的用户id

$result = json_decode($result, true);

the result from array is 1.0000148607246E+14
而不是10000148607246 我知道这是同一个数字,但当我使用该结果从facebook请求中获取新数据时,它会给我id错误

现在的问题是如何在php中将1.0000148607246E+14转换为10000148607246,将精度设置添加到php标记的顶部

<?php
echo $var=1.0000148607246E+14; //"prints" 1.0000148607246E+14
ini_set('precision', 18); // <------------------ Add this on to the top of your code
echo $var=1.0000148607246E+14; //"prints" 1.0000148607246
你可以读更多

输出

number_format(1.0000148607246E+14,0,'','');
100001486072460