Possible Duplicate:
In PHP, what is the differences between NULL and setting a string to equal 2 single quotes.
What does $a=''; indicates in php
and how $a=''; is different than $=NULL:
Possible Duplicate:
In PHP, what is the differences between NULL and setting a string to equal 2 single quotes.
What does $a=''; indicates in php
and how $a=''; is different than $=NULL:
do you mean $a = '' or $ a = ""
If so $a = "" or '' means that variable $a is being set equal to an empty string. In contrast $a = NULL means that variable $a is being set to a special PHP constant NULL which is effectively nothing. The major difference is that $a = '' sets $a as a string variable whereas $a = NULL doesn't. This tends to matter more in languages that require strict declaration of variable types.
See here for more info on NULL: http://php.net/manual/en/language.types.null.php