April 21st, 2013, 11:40 AM
Reference Array value
I am trying to use the Best Buy API to look up a product. I used their documentation like:
and can show the data with
$result = $remix->products(array('sku=3815041'))
But I am not figuring out how to reference just one of the values like just the 'name' of the product from that array.
Any help is much appreciated.
April 21st, 2013, 05:35 PM
Assuming the data in $result is JSON, you can use json_decode to convert it into an array.