Skip to content

Instantly share code, notes, and snippets.

@jaredhoyt
Created October 28, 2010 22:36
Show Gist options
  • Save jaredhoyt/652486 to your computer and use it in GitHub Desktop.
Save jaredhoyt/652486 to your computer and use it in GitHub Desktop.
var_dump($result['EstimateSet']);
["import_total"]=>
string(7) "2261.24"
["domestic_total"]=>
string(7) "2859.56"
var_dump($totals);
array(4) {
["import"]=>
float(2261.24)
["domestic"]=>
float(2859.56)
["premium"]=>
float(3379.24)
["door"]=>
int(0)
}
echo $totals['import'] == $result['EstimateSet']['import_total'] ? 'true' : 'false'; # results in "false"
echo $totals['domestic'] == $result['EstimateSet']['domestic_total'] ? 'true' : 'false'; # results in "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment