note 46233 rejected from functions.variable-functions by tomsommer

From: Date: Sun, 03 Oct 2004 22:43:45 +0000
Subject: note 46233 rejected from functions.variable-functions by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77867@lists.php.net to get a copy of this message
Note Submitter: rxblowmeup at eml dot cc ---- <? class class_my{ function test_func($a){ echo $a; } } $my = new class_my; $obj_name = 'my'; $func_name = "test_func"; echo $$obj_name->{$func_name}("hello");//it worked! if (function_exists($$obj_name->{$func_name})) { //but here it no work echo "<br>func exists"; } else { echo "<br>func not exists"; } //function_exists return false... //why? ?>

« previous php.notes (#77867) next »