SyntaxFix
Write A Post
Hire A Developer
Questions
If you use ==, php treats an empty string or array as null. To make the distinction between null and empty, either use === or is_null. So:
==
null
empty
===
is_null
if($a === NULL) or if(is_null($a))
if($a === NULL)
if(is_null($a))