PHP » GoLang |
login |
register |
about
|
GoLang get_object_vars
request it (429)
GoLang replacement for PHP's get_object_vars
[edit | history]
get_object_vars(PHP 4, PHP 5, PHP 7) get_object_vars — Gets 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
|
more
Recently updated
more
Most requested
more
Last requests
|