I have a dynamically generated PHP multi-dimensional array as follows:
Array (
[uid_1] => Array (
[sub_1] => Array (
[sub_sub_1] => Array (
[id1] => "val_1",
[id2] => "val_2"
)
)
[sub_2] => Array (
[sub_sub_1] => Array (
[id1] => "val_1",
[id2] => "val_2"
),
[sub_sub_2] => Array (
[id3] => "val_3",
[id4] => "val_4"
)
)
)
)
The array is much bigger and will contain multiple [uid], [sub] and [sub_sub].
Note that while [uid] and [sub] are unique, [sub_sub] are not.
Is it possible to add [id5] => "val_5" to all instances of [sub_sub_1] without using loops and without knowing the value of [uid_1] and [sub_2]?
Since You mentioned The array is much bigger, Loop may be needed.