Regarding if statements in PHP

后端 未结 6 1965
轮回少年
轮回少年 2020-12-06 22:31

I\'ve seen some PHP statements that go something like

 if($variable) {} or
 if(function()) {} (if statements that don\'t compare two variables)
6条回答
  •  鱼传尺愫
    2020-12-06 23:23

    if(function()) {} means if the function function's return value is true or true-like then the block will execute.

提交回复
热议问题