$array
=
[
'd' => 'fruit: lemon',
'a' => 'fruit: orange',
'b' => 'fruit: banana',
'c' => 'fruit: apple',
]
$bool
=
true
#1
|
array_walk_recursive
|
(/* $array = ["sweet" => ["a" => "apple", "b" => "banana"], "sour" => "lemon"] */ |
#2
|
array_walk_recursive
|
(/* $array = ["d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple"] */ |