Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/indirect_method_call_002.phpt |
--TEST-- Indirect method call with chaining --FILE-- <?php class foo { public $x = 'testing'; public function bar() { return "foo"; } public function baz() { return new self; } static function xyz() { } } var_dump((new foo())->bar()); // string(3) "foo" var_dump((new foo())->baz()->x); // string(7) "testing" var_dump((new foo())->baz()->baz()->bar()); // string(3) "foo" var_dump((new foo())->xyz()); // NULL (new foo())->www(); ?> --EXPECTF-- string(3) "foo" string(7) "testing" string(3) "foo" NULL Fatal error: Uncaught Error: Call to undefined method foo::www() in %s:%d Stack trace: #0 {main} thrown in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare