<?php class helper { static function foo() { echo __METHOD__; } } $a = "helper"; $b = "foo"; $a::$b(); ?>