Skip to content

Instantly share code, notes, and snippets.

@cezar62882
Created November 7, 2014 12:32
Show Gist options
  • Select an option

  • Save cezar62882/c0c266063ebfaa7f31a6 to your computer and use it in GitHub Desktop.

Select an option

Save cezar62882/c0c266063ebfaa7f31a6 to your computer and use it in GitHub Desktop.
<?php echo
(isset($report['our_earnings_lots']['russia']) ? $report['our_earnings_lots']['russia'] : 0) +
+ (isset($report['partner_earnings_lots']['all']) ? $report['partner_earnings_lots']['all'] : 0)
+ (isset($report['our_earnings_shops']['russia']) ? $report['our_earnings_shops']['russia'] : 0)
+ (isset($report['partner_earnings_shops']['all']) ? $report['partner_earnings_shops']['all'] : 0)
+ (isset($report['our_earnings_forwarding']['russia']) ? $report['our_earnings_forwarding']['russia'] : 0)
+ (isset($report['partner_earnings_forwarding']['all']) ? $report['partner_earnings_forwarding']['all'] : 0)
+ (isset($report['our_earnings_delivery']['russia']) ? $report['our_earnings_delivery']['russia'] : 0)
+ (isset($report['partner_earnings_delivery']['all']) ? $report['partner_earnings_delivery']['all'] : 0)
+ (isset($report['additional_earnings']['russia']) ? $report['additional_earnings']['russia'] : 0)
+ (isset($report['additional_earnings']['partner_total']) ? $report['additional_earnings']['partner_total'] : 0)
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment