WebbuildersGroup\GitHubActionsCIRecipe\Behaviour\FrontEndContext::getNestedValue
Recursivly looks for the value in the array
Signature
protected function getNestedValue(mixed
$key,
array
$array,
[integer
$depth = 0] )
Parameters
$key
—
mixed
- Key to look for in the $array parameter, if this is an array then recursion is used to go to the next depth
$array
—
array
- Input array
$depth
—
integer
- Recursion depth protection
Returns
- mixed
- Returns the value in the input array when $key is a string or an empty array after shifting one parameter. If a key is not found -1 is returned.