Created
December 13, 2012 16:15
-
-
Save adatta02/4277546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach( $userIdProductIdTable as $userId => $productArray ){ | |
foreach( $productArray as $productId => $tpIds ){ | |
$total = 0; | |
foreach( $tpIds as $id ){ $total += $keyedResults[$id]["total"]; } | |
foreach( $tpIds as $id ){ $keyedResults[$id]["total"] = $total; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment