What's the difference between if(!$variable) and if(isset($variable))?

前端 未结 3 1376
一个人的身影
一个人的身影 2020-12-06 11:16

What is the difference between if(!$variable) and if(isset($variable))?

3条回答
  •  天涯浪人
    2020-12-06 11:51

    If a variable is not set, then you will get a warning when using if(!Variable).

提交回复
热议问题