On 19/09/15 22:56, Rowan Collins wrote:
>>> If what you want to do is avoid the notice, then you don't need to
>>> "find out before calling is_null", you need to call isset *instead
>>> of* is_null. Again, ignore the name, and concentrate on what it
>>> actually does.
>> BUT ISSET RETURNS FALSE FOR A VARIABLE THAT IS SET BUT NULL ... END OF
>> STORY ...
> 
> AND SO DOES IS_NULL
> 
> The notices emitted by is_null are COMPLETELY IRRELEVANT.

? is_null returns true if the variable exists and is NULL and throws a
notice if the variable is not set WHY is that fact COMPLETELY
IRRELEVANT? Just because you don't think people should be coding in the
way that it causes problems with existing code does not make it
irrelevant we have to put up with the notices because there is no CLEAN
way to establish that a variable exists only that it is set.

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to