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 : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/tests/classes/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/tests/classes/__set__get_004.phpt |
--TEST-- ZE2 __set() and __get() --FILE-- <?php class Test { protected $x; function __get($name) { if (isset($this->x[$name])) { return $this->x[$name]; } else { return NULL; } } function __set($name, $val) { $this->x[$name] = $val; } } $foo = new Test(); $bar = new Test(); $bar->baz = "Check"; $foo->bar = $bar; var_dump($bar->baz); var_dump($foo->bar->baz); ?> ===DONE=== --EXPECTF-- string(5) "Check" string(5) "Check" ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare