|
get_object_varsGets the properties of the given object Description
array get_object_vars
( object
$object
)
Gets the accessible non-static properties of the given
Parameters
Return Values
Returns an associative array of defined object accessible non-static properties
for the specified Changelog
Examples
Example #1 Use of get_object_vars
<?php The above example will output: array(2) { ["b"]=> int(1) ["c"]=> NULL } array(4) { ["a"]=> NULL ["b"]=> int(1) ["c"]=> NULL ["d"]=> NULL } See Also
|