PHP conditionals, brackets needed?

前端 未结 7 2256
深忆病人
深忆病人 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

提交回复
热议问题