<?php
class Testing
{
final public static function foo()
{
return;
}
public function bar()
{
return;
}
}
$foo = new ReflectionMethod('Testing', 'foo');
echo "Modifiers for method foo():
";
echo $foo->getModifiers() . "
";
echo implode(' ', Reflection::getModifierNames($foo->getModifiers())) . "
";
$bar = new ReflectionMethod('Testing', 'bar');
echo "Modifiers for method bar():
";
echo $bar->getModifiers() . "
";
echo implode(' ', Reflection::getModifierNames($bar->getModifiers()));
?>
Above code is taken from Example #1 ReflectionMethod::getModifiers()
example in php manual: http://php.net/manual/en/reflectionmethod.getmodifiers.php
Question:
the code :$foo->getModifiers()
, output is 261, what does this mean?