ReflectionClass::getReflectionConstants Pobiera stałe klasy &reftitle.description; public arrayReflectionClass::getReflectionConstants intnullfilter&null; Pobiera informacje o stałych klasy. &reftitle.parameters; filter Opcjonalny filtr oczekiwanych widoczności stałych. Konfigurowany przy użyciu the stałych ReflectionProperty. Domyślnie zwracane są stałe o każdym stopniu widoczności. &reftitle.returnvalues; Tablica obiektów ReflectionClassConstant. &reftitle.changelog; &Version; &Description; 8.0.0 Dodano parametr filter. &reftitle.examples; Przykład użycia <function>ReflectionClass::getReflectionConstants</function> getReflectionConstants(); foreach ($consts as $const) { print $const->getName() . "\n"; } var_dump($consts); ?> ]]> &example.outputs.similar; 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" } } ]]> &reftitle.seealso; ReflectionClass::getReflectionConstant ReflectionClassConstant