PDA

Click to See Complete Forum and Search --> : PHP4: Test object type


nebulom
May 28th, 2007, 10:04 PM
How do I go about doing this?

if ($somevar is Person) {
...

Or what I mean is to test the variable if it's of type Person class? Is there something like that, with PHP4?

visualAd
May 29th, 2007, 05:05 AM
http://uk3.php.net/manual/en/function.is-a.php

nebulom
May 29th, 2007, 06:51 PM
Thanks.