> As of PHP 5.4.0, you can call any callable stored in a variable.
```php
<?php
class Foo
{
static function bar()
{
echo "bar\n";
}
function baz()
{
echo "baz\n";
}
}
$func = array("Foo", "bar");
$func(); // prints "bar"
```
原文:https://www.cnblogs.com/china-flint/p/9701071.html