(PHP 7 >= 7.4.0)
ReflectionReference::fromArrayElement — Create a ReflectionReference from an array element
$array
, mixed $key
) : ReflectionReferenceCreates a ReflectionReference from an array element.
Returns a ReflectionReference instance if
$array[$key]
is a reference, or NULL
otherwise.
If array
is not an array, or key
is not an integer or string, a TypeError is thrown.
If $array[$key]
does not exist,
a ReflectionException is thrown.