[pmwiki-devel] Testing empty string
marc
gmane at auxbuss.com
Wed Mar 14 05:23:33 CDT 2007
Jiri Hladuvka / OBUTEX said...
> Hans napsal(a):
> >
> > BTW, what is the difference between NULL and ""
> > (and 0 for that matter)?
>
> I'm not php coder but in some other languages NULL is the value
> of the variable that is defined but with no initial value.
Just to be complete, this isn't true for all languages. Initialisation
is language independent. For example, Java initialises primitive
variables to zero or false (member variables, that is, you can't declare
a variable inline without initialising it), although object references
are created as null.
--
Cheers,
Marc
More information about the pmwiki-devel
mailing list