问题描述
- php字节数组如何转化为bigint
-
php得到的ASCII组成的数组
$array('-115','-101','97','-26','-80','-109','-92','33','-6','71','-122','-64','-17','-29','-101','-53','88','-93','-22','-104');
请问如何转化为如下数据
-653068794747578802236590292838260814592085857640java中是用biginteger转化的,
String sig = new BigInteger(bytes).toString();
bytes为字节数组['-115','-101','97','-26','-80','-109','-92','33','-6','71','-122','-64','-17','-29','-101','-53','88','-93','-22','-104']自己已经搞定了
解决方案
自己已经搞定,解决了哇!
解决方案二:
$num = 115101972680109923367112264172910153889322104;
echo number_format($num,0,'','');
不知道楼主要的是不是这样的
时间: 2024-12-21 09:18:37