Codice PHP:
<?php 

class Test {
    function 
test1() {
        
$nameOfFunction 'test2';
        
$this->$nameOfFunction();
    }
}

$test = new Test();
$test->test1();

?>
Fatal error: Call to undefined method Test::test2() in test.php on line 6