Skip to content
Advertisement

PHP checking for NULL value

Just out of curiosity (and a bit of necessity):

JavaScript

Is the above statement the same as

JavaScript

Advertisement

Answer

No they are not the same.

The is_null function compairs the type also.

Example:

JavaScript

So in your case

JavaScript

Would be the same as

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement