Re: PHP 4.3.11, call_user_func and instances of classes

From: Date: Thu, 27 Apr 2006 10:28:36 +0000
Subject: Re: PHP 4.3.11, call_user_func and instances of classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234909@lists.php.net to get a copy of this message
On Wed, April 26, 2006 6:46 pm, David Otton wrote: > class Test { > var $x; > function Test () > { > global $addition, $subtraction; > $this->x = 0; > $addition = array ($this, 'AddOne'); > $subtraction = array ($this, 'SubtractOne'); Unsolicited Advice: You MIGHT also want to consider using $this->addition and $this->subtraction instead of global variables. Just a bit cleaner, I think. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#234909) next »