RE: [PHP] PHP5 - instanceof [SOLVED]

2004-05-12 Thread Martin Towell
mailto:[EMAIL PROTECTED] > Sent: Thursday, 13 May 2004 2:42 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP5 - instanceof > > > An instance only exists after it has been instantiated. So > you can't know > anything about an instance (== an object) before

Re: [PHP] PHP5 - instanceof

2004-05-12 Thread Travis Low
An instance only exists after it has been instantiated. So you can't know anything about an instance (== an object) beforehand. It's like knowing a person before they are born. Maybe you mean you want to determine if class B is a subclass of class A. That's the same problem again. Even if PH

[PHP] PHP5 - instanceof

2004-05-12 Thread Martin Towell
I have been playing with PHP5 and am liking it more and more. But I have one question about "instanceof" If you have something like this: This would echo "BA". That's good, I understand that. Now the question: Is it possible to determine if B is an instance of A without instantiating it? Than