1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/standard/tests/array/extract_variation9.phpt
2009-01-20 13:21:52 +00:00

21 lines
304 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