PHP » GoLang |
login |
register |
about
|
GoLang ReflectionClass::getReflectionConstants
request it (531)
GoLang replacement for PHP's ReflectionClass::getReflectionConstants
[edit | history]
PHP ReflectionClass::getReflectionConstantsPHP original manual for ReflectionClass::getReflectionConstants [ show | php.net ]ReflectionClass::getReflectionConstants(PHP 7 >= 7.1.0) ReflectionClass::getReflectionConstants — Gets class constants Description
public array ReflectionClass::getReflectionConstants
( void
)
Retrieves reflected constants. ParametersThis function has no parameters. Return ValuesAn array of ReflectionClassConstant objects. ExamplesExample #1 Basic ReflectionClass::getReflectionConstants() example
<?phpThe above example will output something similar to:
FOO
BAR
BAZ
array(3) {
[0]=>
object(ReflectionClassConstant)#3 (2) {
["name"]=>
string(3) "FOO"
["class"]=>
string(3) "Foo"
}
[1]=>
object(ReflectionClassConstant)#4 (2) {
["name"]=>
string(3) "BAR"
["class"]=>
string(3) "Foo"
}
[2]=>
object(ReflectionClassConstant)#5 (2) {
["name"]=>
string(3) "BAZ"
["class"]=>
string(3) "Foo"
}
}
See Also
|
more
Most requested
more
Last requests
|