I have this key "this.key.exists". Key can be: a.b.c.d.e.f etc. this is only example.
And i want to check if exists in array:
$array = [ // depth of array and number of values are variable
'this' => [
'key' => [
'exists' => 'some value' // this is what am i looking for
],
'key2' => [
'exists' => 'some value' // this is not what am i looking for
],
],
'that' => [
'this' => [
'key' => [
'exists' => 'some value' // this is not what am i looking for
],
]
]
];
I need to find this key for update his value.
$array['this']['key']['exists'] = 'need to set new value';
Thanks for help