Re: Fix for #53727 (is_subclass_of resolution with interfaces)
| From: | David Muir | Date: | Thu, 30 Jun 2011 05:11:16 +0000 |
| Subject: | Re: Fix for #53727 (is_subclass_of resolution with interfaces) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53695@lists.php.net to get a copy of this message | ||
On 30/06/11 15:01, Matt Pelmear wrote:
> Not like class_implements(), since that requires processing the returned
> array... Rather something that would function similarly to is_subclass_of()
> (in that it returns a bool, not an array), but for interfaces.
> I seem to run into a need for that on a fairly regular basis. (when I first
> found class_implements() this is what I thought it did before reading the
> docs)
>
> -matt
Oops. My bad. Missed the array_key_exists() part in the example.
David