Re: Preventing static method calls in PHP4

From: Date: Thu, 22 Jul 2004 09:49:56 +0000
Subject: Re: Preventing static method calls in PHP4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191501@lists.php.net to get a copy of this message
The easiest way I can think of to prevent static method calls is to use the $this pseudo variable in your method. A method *cannot* be used statically if the method requires use of $this.

« previous php.general (#191501) next »