(PHP 7 >= 7.4.0, PHP 8)
ReflectionReference::fromArrayElement — Create a ReflectionReference from an array element
$array
, int|string $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 int or string, a TypeError is thrown.
If $array[$key]
does not exist,
a ReflectionException is thrown.
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant