1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/extract_variation9.phpt
2018-10-14 19:45:12 +02:00

21 lines
303 B
PHP

--TEST--
Test extract() function (variation 9)
--FILE--
<?php
/* Using Class and objects */
echo "\n*** Testing for object ***\n";
class classA
{
public $v;
}
$A = new classA();
var_dump ( extract(get_object_vars($A),EXTR_REFS));
echo "Done\n";
?>
--EXPECT--
*** Testing for object ***
int(1)
Done