Terry Cullen wrote on 17/09/2015 13:41:
Here is an example where exists would be useful;
You answered your own request:
// I should have used property_exists() instead of isset().. wasn't
expecting a null..
We already have that function, so that's alright then! :)
As I've said several times, we need to improve documentation around
this, but "I didn't find the existing function, so I need a new function
which will be no easier to find and won't work in most people's
environments" is a pretty weak argument in favour of a language change.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php