['ignore_errors' => true]])); $response = json_decode($data); $productname = $response->products[0]->title; $price = $response->products[0]->stores[0]->store_price; $store = $response->products[0]->stores[0]->store_name; $imageurl = $response->products[0]->images[1]; echo $productname."|1|".strval($price)."|2|".$store."|3|".$imageurl; ?>