Re: test variable value?

From: Date: Wed, 11 Jan 2006 23:58:44 +0000
Subject: Re: test variable value?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228506@lists.php.net to get a copy of this message
William Stokes wrote: > Hello > > What is the best way to determine if a variable has no value? > > if ($var= '') > > or > > if ($var= 'null') > > > Can 'null' be used here? Look at isset() and empty() Cheers -- David Robley You cannot achieve the impossible without attempting the absurd.

« previous php.general (#228506) next »