<?php class Foo { public function hello() { return 'world'; } public static function hi() { return 'Joe'; } } $bar = Foo; // your code goes here
Standard input is empty
string(3) "Foo"
PHP Notice: Use of undefined constant Foo - assumed 'Foo' in /home/mKV0oW/prog.php on line 15