How can I add all the columnar values by associative key? Note that key sets are dynamic.
Input array:
Arr
Use this snippet:
$key = 'gozhi'; $sum = array_sum(array_column($array,$key));