> On Sep 18, 2015, at 10:27, Lester Caine <les...@lsces.co.uk> wrote: > > All I am saying is that 'exists()' is simply part of the toolkit that > goes WITH extract(). There is a suitable tool in arrays and in objects > so why not complete the toolkit in straight variables. The names are a > mess between the three for many reasons and producing a complete new set > of function names has been another call, but there is a simple hole here > in a style of coding which there seems little logical reason NOT to fill.
Exactly, there’s clearly a gap here. Further, enough people want it that a few have shown up on this list, which means there are probably many, many thousands, or even millions, of people out in the wild that want it. I’m not familiar enough with PHP’s internals to say for sure, but I suspect it’s not terribly hard to implement (it’s just isset() without the extra null check). So… why not? Like anything else in the language, people don’t have to use it if they don’t want to, but it’s good to have tools. Yes, even tools that can be abused. -Bob
signature.asc
Description: Message signed with OpenPGP using GPGMail