note 83336 deleted from function.eval by danbrown

From: Date: Sun, 17 May 2009 19:52:53 +0000
Subject: note 83336 deleted from function.eval by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155286@lists.php.net to get a copy of this message
Note Submitter: thiago dot pojda at gmail dot com ---- Correcting previous comment from Ivan Zahariev, PHP did not recognize __FUNCTION__ in his example because of simple quotes ('). This code... <?php function user_func1() { echo "User function name: ".__FUNCTION__."\n"; eval("echo \"in eval(): User function name: ".__FUNCTION__."\n\";"); } user_func1(); ?> ... outputs: User function name: user_func1 in eval(): User function name: user_func1

« previous php.notes (#155286) next »