As of PHP 5.4.0, you can call any callable stored in a variable.
<?php
class Foo
{
static function bar()
{
echo "bar
";
}
function baz()
{
echo "baz
";
}
}
$func = array("Foo", "bar");
$func(); // prints "bar"