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/lang/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/tests/lang/passByReference_008.phpt |
--TEST-- Pass same variable by ref and by value. --FILE-- <?php function valRef($x, &$y) { var_dump($x, $y); $x = 'changed.x'; $y = 'changed.y'; } function refVal(&$x, $y) { var_dump($x, $y); $x = 'changed.x'; $y = 'changed.y'; } echo "\n\n-- Val, Ref --\n"; $a = 'original.a'; valRef($a, $a); var_dump($a); echo "\n\n-- Ref, Val --\n"; $b = 'original.b'; refVal($b, $b); var_dump($b); ?> --EXPECTF-- -- Val, Ref -- string(10) "original.a" string(10) "original.a" string(9) "changed.y" -- Ref, Val -- string(10) "original.b" string(10) "original.b" string(9) "changed.x"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare