Как сравнить два значения массива в PHP
У меня есть две функции, первая из которых: public function computeGHComponents() { error_reporting (E_ALL^ E_NOTICE); $totals = NULL; foreach ($this->transaction as $t){ $amount = (float) $t['Amount']; if (isset($totals[ $t['SiteID'] ][ $t['TransactionType'] ])){ $totals[ $t['SiteID'] ][ $t['TransactionType'] ] += (float) $amount; } else { $totals[ $t['SiteID'] ][ $t['TransactionType'] ] = (float) $amount; } } foreach($totals as […]