How to check whether a variable is null in PHP?
< 1 min readTo check whether a variable is null in PHP, you can use the is_null() function. This function returns true if the variable is null, and false otherwise. For example: This would output $var is null. You can also use the === operator to check whether a variable is null. This operator returns true if the…
