PHP » GoLang |
login |
register |
about
|
GoLang ReflectionClass::getProperties
request it (420)
GoLang replacement for PHP's ReflectionClass::getProperties
[edit | history]
PHP ReflectionClass::getPropertiesPHP original manual for ReflectionClass::getProperties [ show | php.net ]ReflectionClass::getProperties(PHP 5, PHP 7) ReflectionClass::getProperties — Gets properties Description
public array ReflectionClass::getProperties
([ int
$filter
] )Retrieves reflected properties. Parameters
Return ValuesAn array of ReflectionProperty objects. ExamplesExample #1 ReflectionClass::getProperties() filtering example
This example demonstrates usage of the optional
<?php The above example will output something similar to: foo bar array(2) { [0]=> object(ReflectionProperty)#3 (2) { ["name"]=> string(3) "foo" ["class"]=> string(3) "Foo" } [1]=> object(ReflectionProperty)#4 (2) { ["name"]=> string(3) "bar" ["class"]=> string(3) "Foo" } } See Also
|
more
Recently updated
more
Most requested
more
Last requests
|