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/ext/standard/tests/class_object/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/standard/tests/class_object/get_object_vars_variation_002.phpt |
--TEST-- get_object_vars() - ensure references are preserved --FILE-- <?php /* Prototype : proto array get_object_vars(object obj) * Description: Returns an array of object properties * Source code: Zend/zend_builtin_functions.c * Alias to functions: */ $obj = new stdClass; var_dump(get_object_vars($obj)); $a='original.a'; $obj->ref = &$a; $obj->val = $a; $arr = get_object_vars($obj); var_dump($arr); $arr['ref'] = 'changed.ref'; $arr['val'] = 'changed.val'; var_dump($arr, $obj, $a); ?> --EXPECTF-- array(0) { } array(2) { ["ref"]=> &string(10) "original.a" ["val"]=> string(10) "original.a" } array(2) { ["ref"]=> &string(11) "changed.ref" ["val"]=> string(11) "changed.val" } object(stdClass)#1 (2) { ["ref"]=> &string(11) "changed.ref" ["val"]=> string(10) "original.a" } string(11) "changed.ref"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare