SyntaxFix
Write A Post
Hire A Developer
Questions
The best and easiest way to check if a variable is empty in PHP is just to use the empty() function.
if empty($variable) then ....