Search Results
ReflectionMethod::getModifiers (PHP 5, PHP 7, PHP 8) ReflectionMethod::getModifiers — Gets the method modifiers
Dec 17, 2019 · The ReflectionMethod::getModifiers () function is an inbuilt function in PHP which is used to return the numeric representation of the method modifiers. Syntax: int ReflectionMethod::getModifiers( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the numeric representation of the method modifiers. Below programs illustrate the ReflectionMethod ...
ReflectionMethod::getModifiers (PHP 5, PHP 7, PHP 8) ReflectionMethod::getModifiers — Gets the method modifiers
ReflectionMethod::getModifiers (PHP 5, PHP 7) ReflectionMethod::getModifiers — Gets the method modifiers Description public ReflectionMethod::getModifiers ( ) : int Returns a bitfield of the access modifiers for this method. Parameters This function has no parameters. Return Values A numeric representation of the modifiers.
The above example will output something similar to: Modifiers for method foo (): 49 final public static Modifiers for method bar (): 1 public
PHP Manual Function Reference Variable and Type Related Extensions Reflection ReflectionMethod ReflectionMethod::getModifiers
(PHP 5, PHP 7) Return Values A numeric representation of the modifiers. The modifiers are listed below. The actual meanings of these modifiers are described in the predefined constants.
