php8.5
Home/ Manual/ reflection / reflectionfunctionabstract/ ReflectionFunctionAbstract::getNumberOfParameters

ReflectionFunctionAbstract::getNumberOfParameters

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Gets number of parameters

Description

ReflectionFunctionAbstract::getNumberOfParameters(): int

Get the number of parameters that a function defines, both optional and required.

Parameters Parameters

Return Values

The number of parameters.

See Also

Source: reference/reflection/reflectionfunctionabstract/getnumberofparameters.xml · from the official PHP manual (php/doc-en)