更新时间:2023-02-26 17:56:36
PHP GMP扩展将更好。作为额外的奖励,您可以使用它进行十进制到二进制转换,如下所示:
The PHP GMP extension will be better for this. As an added bonus, you can use it to do your decimal-to-binary conversion, like so:
gmp_strval(gmp_init($n, 10), 2);
PHP算法练习十一:检查两个给定整数是否在指定范围内