Annetta  Robel

Annetta Robel

1599236280

How To Check Variable Is NULL in PHP | PHP is_null() Tutorial Example

How To Check Variable Is NULL in PHP | PHP is_null() Tutorial Example is today’s topic. PHP is_null() function finds whether a variable is NULL. A special NULL value represents the variable with no value. The NULL is the only possible value of type NULL.

The variable is considered to be null if:

  1. It has been assigned a constant NULL.
  2. It has not been set to any value yet.
  3. It has been unset().

How To Check Variable Is NULL in PHP

The is_null() function is used to test whether the variable is NULL or not. The is_null() function returns TRUE if the variable is null, FALSE otherwise.

There is only one value of type  null, and it is the case-insensitive constant NULL.

#php #false #null

How To Check Variable Is NULL in PHP | PHP is_null() Tutorial Example