note 9518 added to Variable Functions
| From: | degt at hotmail dot com | Date: | Wed, 08 Nov 2000 21:07:15 +0000 |
| Subject: | note 9518 added to Variable Functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7505@lists.php.net to get a copy of this message | ||
Actually the {$this->func}() construct does
not work. Not on 4.0.1pl1 at least. And the
other approach works only if you are in
local scope.
in the constructor function:
$fconnect = "mysql_connect";
in some other member function:
$this->fconnect(...)
would give a parse error. The correct
way seems to be
$fConnect = $this->fconnect;
$fConnect(...)
But it seems to be a bug...
http://www.php.net/manual/ref.var.php