Re: [DISCUSSION] Make empty() a Variadic

From: Date: Fri, 13 Feb 2015 14:09:16 +0000
Subject: Re: [DISCUSSION] Make empty() a Variadic
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-82613@lists.php.net to get a copy of this message
Hi, 2015-02-13 14:45 GMT+01:00 Thomas Punt <tpunt@hotmail.co.uk>: > Hi Francois, > >> From: francois@tekwire.net> >> May I suggest to extend your proposal to is_null() with the same logic ? > If we were to do the same with is_null(), then would it not be best to do it with all the > is_*() functions? I would be more than happy to cater for those functions as well, though their > usages seem a lot less common. What does everyone else think? While I don't know how common such a usage is I'm certain that there is a use case for it. However, just modifying a subset of the is_* functions sounds like a bad idea. If such a change is applied it should be done to all type related is_* functions and be similar to issets behavior (return false if at least one argument is not of the given type). Thanks,

« previous php.internals (#82613) next »