The response I am getting from a web call in php is something i have never seen. I have tried json_decode
function and I have also tried the parse_str
below, but I can't get the values to return in an array.
What i want to do is to output an array with name, price, and url. The formatting of the return has got me stumped (I copied it exactly, no typos or missing ' characters).
$urltest='https://www.***';
$result408 = file_get_contents($urltest);
//parse_str($result408, $output);
Prices = [{'name':'Seller1', 'unknown':'unknown0', 'price':60.37, 'price_f':'$60<sup style="font-size:12px;">37</sup>', 'url':'http:…'},
{'name':'Seller2', 'unknown':'unknown0','price':87.25, 'price_f':'$87<sup style="font-size:12px;">25</sup>, 'url':'http:…'},
{'name':'Seller3', 'unknown':'unknown0', 'price':74, 'price_f':'$74<sup style="font-size:12px;">00</sup>', 'url':'http:…'}];