Voting

: five minus four?
(Example: nine)

The Note You're Voting On

Knightnet
17 years ago
You don't need to use this function to call a variable class function. Instead you can do the following:

$this->{$fnname}();

The example works in PHP 5 from within the class. It is the {} that do the trick.

Regards,
Julian.

<< Back to user notes page

To Top