Re: instanceof on class (not objects) php 5

From: 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:
Maybe
if (new MyClass instanceof_equiv tester) {
    ...
} ?>


« previous php.general (#154202) next »