php / 8.1.5 / reflectionparameter.getposition.html /

ReflectionParameter::getPosition

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

ReflectionParameter::getPositionGets parameter position

Description

public ReflectionParameter::getPosition(): int

Gets the position of the parameter.

Parameters

This function has no parameters.

Return Values

The position of the parameter, left to right, starting at position #0.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionparameter.getposition.php