Understanding NULLs

Aug 14, 2009 Author: Developer

The value NULL is a data type all to itselfa value that actually has no value. It has no numeric value, but comparing to an integer value zero evaluates to true

$number = 0;
if ($number == $empty) {  
 echo "The values are the same";

Type Comparisonstriple equals comparison operator (===).

tags: php value null

views 4150
  1. Add New Comment