Re: PHP 7.1 - Address PHPSadness #28?

From: Date: Fri, 18 Sep 2015 14:39:22 +0000
Subject: Re: PHP 7.1 - Address PHPSadness #28?
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  Groups: php.internals 
Request: Send a blank email to internals+get-88327@lists.php.net to get a copy of this message
On 18/09/15 15:06, Rowan Collins wrote: > A PHP variable can have all sorts of states, because you can take > advantage of loose typing: > > $date = new DateTime(); > $date = null; > $date = 'TODAY'; > $date = -1; > $date = M_PI; And isset() returns true for every one but 'null' so how do I identify a variable that isset=null? -- 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

« previous php.internals (#88327) next »