Skip to content

Instantly share code, notes, and snippets.

@oojacoboo
Created February 1, 2013 06:08
Show Gist options
  • Select an option

  • Save oojacoboo/4689612 to your computer and use it in GitHub Desktop.

Select an option

Save oojacoboo/4689612 to your computer and use it in GitHub Desktop.
$settlementsByTime = array();
foreach($responseObject->getSettleDetailResult->Settle as $settlement) {
// if(!in_array($settlement->SettleDate, $settlementDates))
// array_push($settlementDates, $settlement->SettleDate);
$settlementsByTime[strtotime($settlement->SettleDate)] += $settlement->Transaction->Amount;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment