I'm facing an issue while searching for a specific key value in a nested array. Below it the example of array I'm dealing with.
$this->strings = [
'group_one => [
'name_one' => "string g-one-one",
'name_two => "string g-one-two",
'name_three' => "string g-one-three",
],
'group_two' => [
'name_one' => "string g-one-one",
'name_two => "string g-one-two",
'name_three' => "string g-two-three",
],
...
],
I'm trying to get a search function running in order to have get_string( 'goup-one', 'name-two');
return "string g-one-two
I tried with a RecusrsiveArrayIterorator, foreach loops, but i cannot seem to output something, always returning NULL.
Could use a bit of a help here.
Thanks