get_object_vars

get_object_vars -- Returns an associative array of object properties

Description

array get_object_vars ( object obj)

If variables declared in the class of which the obj is an instance , have not been assigned a value , those will not be returned in the array .

דוגמה 1 .




The printout of the above program will be:
 
Array

 
 (

 
[x

 
]

 
=

 
1.233

 
[y

 
]

 
=

 
3.445

 
 )

 

 Array

 
 (

 
[x

 
]

 
=

 
1.233

 
[y

 
]

 
=

 
3.445

 
[label

 
]

 
=

 
point

 
#1

 
 )