Posted by Mladen Gogala on 11/19/37 11:45
On Thu, 20 Apr 2006 12:57:48 -0400, Joshua Frank wrote:
> How can you tell if an object supports an interface? I've got a
> situation where I need to tell if an object implements Iterator, but
> there doesn't seem to be any operator like typeof that would let you do
> this:
>
> if($obj typeof Iterator)
> ...
There is gettype function.
--
http://www.mgogala.com
Navigation:
[Reply to this message]
|