I'm using PHP 5.4 and trying to add dictionary-style complex values to an array thusly:
array_push($qbProductsArray, $qbProduct => $authNetAmount);
I get this error:
Parse error: syntax error, unexpected '=>'
My desired result is to have a series of
$authNetAmount that are related together. I don't want to add them separately like this:
array_push($qbProductsArray, $qbProduct, $authNetAmount);
...because those 2 values are related to each other, and I don't want them just all thrown in together, even though they are adjacent. I want a firmer link between them. How can this be done?