我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

php输出打印0500

I have following php code.

    <?php
           print 0505;
           echo "
";
           print 0500;
     ?>

output =>   325
            320

can anyone tell me how come did this output?

0x*** - hex number (16)
0b*** - bin number (2, PHP5.4)
0*** - oct number (8)
*** - dec number (10, normal)

This is octal

Here is a octal/decimal converter.

500 oct = 320 dec

505 oct = 325 dec

You can get output using this format

print "0505";

echo " ";

print "0500";

Because this is octal/decimal convertor

please check this link: http://www.statman.info/conversions/octal.html

近期文章

  • 这个模型就是关于链表中指针操作以及节点赋值问题的一个通俗易懂的抽象
  • swiftui无法拿到数据
  • 解决Process finished with exit code 1
  • proteus8串口问题
  • 1比500地形图航测要布多少像控点呢?
  • 填涂颜色问题该咋写啊
  • 有关A*算法问题提问
  • 对比两个顺序表大小,如何解决?
  • 如何使用flutter和flask来实现登陆注册功能
  • 使用变量outside for循环语句
  • AD10Properties在哪
  • 关于#python#的问题,如何解决?
  • 各位,这函数的形参在主函数该怎么设置指针传递
  • 异常处理D:\AllProject\oasy\static\image\D:\AllProject\oasy\static\e72b0848-6240-
  • 单链表的内存泄露问题
  • 关于#c++#的问题,请各位专家解答!
  • 晶体管和场效应管各有什么组态,及对应关系
  • 爆炸字符串并在每4个实例后创建一个新数组
  • tcp send函数会一直阻塞吗
  • python BeeWare

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华