Hi,
how does
if (Z_TYPE_P(val) == IS_OBJECT) { ...
work for you?
- Markus
On Sun, May 05, 2002 at 09:55:24AM -0700, brad lafountain wrote :
> Is there a cleaner way to find out if a parameter that was passed into a
> function is a certin type. Currently i use.
>
> strcmp(Z_OBJCE_P(val)->name, "class")
>
>
> - Brad
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"I'm not stupid, you know? :)" - Jani Taskinen
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php