Re: isset(), undefined variables, and null
- From: Andrew Hutchings <info@xxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 21:40:46 GMT
arundelo@xxxxxxxxxxx wrote:
Is there a way to tell whether accessing a variable will
result in an "Undefined variable" E_NOTICE? isset() almost
does this, but it also returns false if a variable is set to
null:
You could use is_null().
--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you...
.
- References:
- isset(), undefined variables, and null
- From: arundelo
- isset(), undefined variables, and null
- Prev by Date: Re: Array_merge() Question
- Next by Date: Newbie 2
- Previous by thread: isset(), undefined variables, and null
- Next by thread: Re: isset(), undefined variables, and null
- Index(es):
Relevant Pages
|