php8.5
Home/ Manual/ reflection / reflectionparameter/ ReflectionParameter::canBePassedByValue

ReflectionParameter::canBePassedByValue

PHP function Edit on GitHub ✎

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

Returns whether this parameter can be passed by value

Description

ReflectionParameter::canBePassedByValue(): bool

Parameters Parameters

Return Values

Returns true if the parameter can be passed by value, false otherwise.

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