note 85630 deleted from functions.variable-functions by thiago

From: Date: Wed, 10 Sep 2008 20:54:34 +0000
Subject: note 85630 deleted from functions.variable-functions by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144313@lists.php.net to get a copy of this message
Note Submitter: Anonymous Reason: useless ---- To anyone wanting to call function names stored in the object scope: <?php class my_class { public $stored_func = 'explode'; function __construct () { var_dump(call_user_func($this->stored_func, ' ', "str ing")); } } ?> Simply trying to call it like this: $this->stored_func(' ', "str ing"); Won't work because "stored_func" is a member and not a method (quite obviously)

« previous php.notes (#144313) next »