Re: [PHP-DEV] Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Leigh
On 18 September 2013 12:15, Igor Wiedler wrote: > > for is_* functions, this could easily be done with a higher-order "every" > function. You pass a predicate and an array of values. It returns a boolean. > > Example: > > if (!every('is_int', $numbers)) { > throw new \Inva

Re: [PHP-DEV] Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Sebastian Krebs
2013/9/18 Igor Wiedler > On Sep 18, 2013, at 11:53 AM, Leigh wrote: > > > Hi Internals. > > > > How do you feel about expanding the is_* functions to accept multiple > > parameters similar to the way isset() already does? > > > > ... > > > > Thoughts? > > For isset() there is a good reason to do

Re: [PHP-DEV] Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Igor Wiedler
On Sep 18, 2013, at 11:53 AM, Leigh wrote: > Hi Internals. > > How do you feel about expanding the is_* functions to accept multiple > parameters similar to the way isset() already does? > > ... > > Thoughts? For isset() there is a good reason to do this, because the var might not exist at a