<?php class Foo { public function bar() { echo "I'm private Foo1::bar()"; } } $className = "Foo"; $foo = new $className; var_dump($foo);
You have javascript disabled. You will not be able to edit any code.