I have an array like this:
Array
(
[1000] => Array
(
[pv] => 36
)
[1101] => Array
(
[1102] => Array
(
[pv] => 92
)
[pv] => 38
)
[pv] => 64
)
How I can find the sum of all array elements with key 'pv', regardless of the depth at which they appear.
For this example the result will 36+92+38+64 = 240
Thanks for help.