PHP conditionals, brackets needed?

前端 未结 7 2136
深忆病人
深忆病人 2020-11-28 05:55

I was just browsing a forum and someone asked about a PHP file they had found on the web. It has several spots like this in the code:

if ($REMOTE_ADDR == \"\"

相关标签:
7条回答
  • 2020-11-28 07:01
    brackets are needed to enclose what you want to do if the condition is true
    

    I can't think of any language that requires this

    0 讨论(0)
提交回复
热议问题