Dynamic Static Calls
PHP now allows dynamic calls to static methods
<?php
class
helper
{
static function
foo
() {
echo
__METHOD__
;
}
}
$a
=
"helper"
;
$b
=
"foo"
;
$a
::
$b
();
?>
Output
helper::foo