Posts Tagged "null"

Difference between isset empty is null

I have come across code that checks for empty or null values, or if a variable is set. Many of these checks fail as the wrong function is being used to assert the correct value. While it is important to be checking values, it is equally important to understand the difference between the different methods of checking and testing values for empty, null, or if they are set. Most common is the incorrect use of isset() and empty(). Many times…

Read More