Problem with variable functions

From: Date: Wed, 12 Jul 2000 18:00:47 +0000
Subject: Problem with variable functions
Groups: php.general 
Request: Send a blank email to php-general+get-6201@lists.php.net to get a copy of this message
Hi, I've got a variable $function: $function = "\$classname->sett"; And now, I wanted to call the method set with: $function(); which doesn't work. PHP reports <b>Fatal error</b>: Call to undefined function: $classname->sett() in <b>class.bla.php3</b> Isn't PHP capable of having variable functions with class methods or am I doing something wrong? Any solutions? TIA, Björn.

« previous php.general (#6201) next »