difference between is_null “== NULL” and “=== NULL” in PHP [duplicate]
问题 This question already exists : Closed 7 years ago . Possible Duplicate: php == vs === operator i have the following code fragment and it doesn't make sense to me why would NULL be evaluated in 3 different ways. Consider the variable $uploaded_filenames_array as UNKNOWN - we don't know whether it's still an array or a NULL. That's what we are trying to check. //----------------------------------------------- if (is_null($uploaded_filenames_array)){ echo "is_null"; } else{ echo "is_NOT_null"; }