Weak typing in PHP: why use isset at all?

前端 未结 9 856
孤街浪徒
孤街浪徒 2020-12-01 12:38

It seems like my code works to check for null if I do

if ($tx) 

or

if (isset($tx))

why would I do the se

9条回答
  •  广开言路
    2020-12-01 13:18

    Because the former could also check for true/false, which you may or may not want.

提交回复
热议问题