Lester Caine wrote on 18/09/2015 16:55:
On 18/09/15 16:35, Rowan Collins wrote:If what you want to write is "if ( ! exists($foo) || is_null($foo) ) { ... }" then that is exactly what "if ( isset($foo) )" will give you, without any notices whatsoever.NO what I want isif ( exists($foo) ) { is_null($foo) { build uninitialised field } else { build initialise with ($foo) } }
Right, so stop talking about Notices. Ignoring Notices does not get you any closer to that goal.
And stop lecturing me about Nulls. The is_null($foo) part of that is the part that already works fine.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
