|
NULL or "" ?
Hi,
I've learned PHP myself and as such have my own way of doing things.
When Ive been declaring a variable as nothing I've just been doing something like this:
PHP Code:
$variable = "";
Recently I came across the NULL and have realised I could declare the variable like this:
PHP Code:
$variable = NULL;
Whats the difference, will I get problems doing it one way over the other?
|