note 10855 added to Function arguments
| From: | alex at networkessence dot com | Date: | Wed, 24 Jan 2001 07:28:54 +0000 |
| Subject: | note 10855 added to Function arguments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10206@lists.php.net to get a copy of this message | ||
I found this useful:
You can call a function by using the value of a string.
function test() {
echo "hello world";
}
$string = "test";
$string();
would output "hello world"
http://www.php.net/manual/en/functions.arguments.php