<?php function bar() { echo "da blyaaa\n"; } $bar = function() { echo "voobshe ohuet\n"; }; class Foo { public const bar = 'bar'; public static string $bar = 'bar'; public function bar(): string { return 'bar'; } } $foo = new Foo; echo "1) This is {Foo::$bar}\n"; echo "2) This is {$foo::$bar()}\n"; echo "3) This is {Foo::bar}\n"; echo "4) This is {Foo->bar()}\n"; echo "5) This is {$foo->bar()}\n"; echo "6) This is ${Foo::bar}\n"; echo "7) This is ${Foo::$bar}\n"; echo "8) This is {$foo::bar()}\n";
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`