Re: Detecting object types

From: Date: Sun, 05 May 2002 17:01:46 +0000
Subject: Re: Detecting object types
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-83723@lists.php.net to get a copy of this message
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

« previous php.dev (#83723) next »