I have an array coming into my PHP function that looks like this:
Array
(
    [BULD-FAX] => 5.00
)
The string BULD-FAX is dynamic and not known until runtime. I'm simply trying to get the dollar value, which in this case is 5.00.
Here's my code:
$productName = key($myArray);
$amount =  $myArray[$productName]->{0};
$productName evaluates to BULD-FAX as expected. But $amount is blank. What am I doing wrong?
 
    