diff --git a/reference/reflection/reflection/getmodifiernames.xml b/reference/reflection/reflection/getmodifiernames.xml index da44db49d4..e1988b9fef 100644 --- a/reference/reflection/reflection/getmodifiernames.xml +++ b/reference/reflection/reflection/getmodifiernames.xml @@ -16,9 +16,6 @@ Gets modifier names. - - &warn.undocumented.func; - @@ -29,7 +26,7 @@ modifiers - The modifiers to get, which is from a numeric value. + Bitfield of the modifiers to get. @@ -44,11 +41,62 @@ + + &reftitle.examples; + + + <methodname>Reflection::getModifierNames</methodname> example + +getModifiers() . "\n"; +echo implode(' ', Reflection::getModifierNames($foo->getModifiers())) . "\n"; + +$bar = new ReflectionMethod('Testing', 'bar'); + +echo "Modifiers for method bar():\n"; +echo $bar->getModifiers() . "\n"; +echo implode(' ', Reflection::getModifierNames($bar->getModifiers())); +]]> + + &example.outputs.similar; + + + + + + + &reftitle.seealso; - Reflection::export + ReflectionClass::getModifiers + ReflectionMethod::getModifiers + ReflectionProperty::getModifiers