dongshie8450 2014-06-01 06:46
浏览 31
已采纳

为什么Eclipse中的'true'和'TRUE'用于PHP?

The Eclipse 'intellisense' for some methods in PHP files suggests true, looking like the PHP boolean literal, but for other methods suggests TRUE, which looks like a constant defined somewhere. What causes this?

  • 写回答

1条回答 默认 最新

  • dongxian6285 2014-06-01 06:50
    关注

    I'm not sure what causes it, but both are equivalent. According to the PHP docs:

    To specify a boolean literal, use the keywords TRUE or FALSE. Both are case-insensitive.

    Were I to hazard a guess as to the cause, I would think it is just due to many additions to the Eclipse's 'Intellisense' over the years, with various programmers using their own personal preference.

    If you want to follow the PSR-2 standard, they must be in lower case.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器