PHP Null Value with Examples

PHP Null Value with Examples


Null represents no value; this is a special data type which don’t assign any value to variable.

  • Null means no value.
  • Null is not 0, false or any other value, it is null.
  • Null is case-insensitive. All Nullnull and NULL are equal.

For example:

Output : NULL NULL