Having following array:
Array
(
[notifys] => Array
(
[0] => Array
(
[notifytype_id] => 10
[notify_total] => 1
)
[1] => Array
(
[notifytype_id] => 11
[notify_total] => 1
)
[2] => Array
(
[notifytype_id] => 14
[notify_total] => 3
)
[3] => Array
(
[notifytype_id] => 14
[notify_total] => 3
)
[4] => Array
(
[notifytype_id] => 14
[notify_total] => 2
)
[5] => Array
(
[notifytype_id] => 14
[notify_total] => 32
)
[6] => Array
(
[notifytype_id] => 14
[notify_total] => 28
)
[7] => Array
(
[notifytype_id] => 14
[notify_total] => 3
)
[8] => Array
(
[notifytype_id] => 14
[notify_total] => 7
)
[9] => Array
(
[notifytype_id] => 2
[notify_total] => 7
)
[10] => Array
(
[notifytype_id] => 2
[notify_total] => 15
)
)
)
---------------------------------------------------------------------------------------
Need a PHP solution to do an addition, in example, of all values in [notify_total] WHERE [notifytype_id] == 10 OR [notifytype_id] == 2
So, the result in this example would be:
$result = 23
OR, not anAND