Re: instanceof on class (not objects) php 5
| From: | Greg Beaver | Date: | Mon, 07 Jul 2003 16:24:16 +0000 |
| Subject: | Re: instanceof on class (not objects) php 5 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154202@lists.php.net to get a copy of this message | ||
Hi,
I can't instantiate the class, as there is no way to guarantee that the constructor doesn't require arguments, and I don't want to halt program execution if it doesn't implement tester
Greg
Marek Kilimajer wrote:
Maybeif (new MyClass instanceof_equiv tester) {...} ?>