2
get_object_vars(): visibility from non static methods (target object passed as arg)
5
/* Prototype : proto array get_object_vars(object obj)
6
* Description: Returns an array of object properties
7
* Source code: Zend/zend_builtin_functions.c
12
private $hiddenPriv = 'A::hiddenPriv';
14
public function testA($b) {
15
echo __METHOD__ . "\n";
16
var_dump(get_object_vars($b));
21
private $hiddenPriv = 'B::hiddenPriv';
22
private $priv = 'B::priv';
23
protected $prot = 'B::prot';
24
public $pub = 'B::pub';
26
public function testB($b) {
27
echo __METHOD__ . "\n";
28
var_dump(get_object_vars($b));
34
echo "\n---( Declaring class: )---\n";
36
echo "\n---( Superclass: )---\n";
42
---( Declaring class: )---
46
string(13) "B::hiddenPriv"
63
string(13) "A::hiddenPriv"
b'\\ No newline at end of file'