Php – Sum values in one column of a multidimensional array where another column in the respective row is empty
How can I conditionally sum elements from this multidimensional array? From this array, I would to sum items only if taskID is empty. Array ( [data] => Array ( [0] => Array ( [taskID] => [hours] => 1 ) [1]…