php , SimpleXML, extract info from array -


I am trying to extract some information from the eBay API, I have this link and I am using SimpleXML. So far I have been able to remove all the necessary information except "Chitrakul". The point is that when I print simpleXMl, it shows that the images are in the array

 [GalleryURL] => http://thumbs4.ebaystatic.com/pict/1105372138158080_1.jpg [PictureURL] => Arre ([0] => http://i.ebayimg.com/09/?Bt+mKZQCWk~$(KGrHqYH-CYEvrwcUC47BL-, (K (pnw ~~ _1.JPG? set_id = 8800005007 [ 1] => Http://i.ebayimg.com/01/.bt+mDTwB2k~$(KGrHqUH-DEEvirheBYUBL-, Waitjekyu ~~ _1.JPG? set_id = 8800005007 [2] => http: //i.ebayimg .com / 22 /! BT + mE8! EGk ~ $ (KGrHqUH-CMEvsjKcE3JBL-, Wzr + sw ~~ _1.JPG? Set_id = 8800005007 [3] => http://i.ebayimg.com/17/! Bt + MFg! EZIC ~ $ (KGRAqIH-DIVP43,) 33-LL, W14vYQ ~~ _1.JPG? Set_id = 8800005007 [4] => http://i.ebayimg.com/01/.Bt+mQ0! ! 2k ~ $ (KGRAQIH-IQWeek DDLQJVBL, (J1WGG ~~ _1.JPG? Set_id = 8800005007 [5] => http://i.ebayimg.com/01/.Bt+mSq?EGk~$(KGrHqQH-C4Evs(Rz(JWBL) - (Rdtsw ~~ _lkjpg? Set_id = 8800005007 [6] => Actiteepi://ikebayingkcom/03/?bt+mubv!vk~$(kgrhkeh-divanktm9VkBL-, (V1 + luck ~~ _1 JPG? Set_ id = 8800005007 [7] => http://i.ebayimg.com/15/!Bt+mHKQEGk~$(KGrHqQH-E.Evlr98iwBBL-, W87Nug ~~ _1.JPG? set_id = 8800005007 [8] => Http://i.ebayimg.com/13/!Bt+mI3!Bmk~$(KGrHqMH-DkEvq1,F2ooBL-, (EQ7Vg ~~ _1.JPG? Set_id = 8800005007 [9] => http: // I .ebayimg.com / 05 /! Bt + mL2gEWk ~ $ (Kejiaracaiaiac-Iwaiwwv 7 Vikway 4 BL - (Pijisikeyu ~ _lkjepiji? Set_ id = 8800005007 [10] => http://i.ebayimg.com/24/!Bt+ MNlwEWk ~ $ (KGrHqIH -CYEvqPjh6RQBL -, (V + S! ~~ _1.JPG? Set_id = 8800005007 [11] => http://i.ebayimg.com/19/!Bt+mPE!!2k~$ (KGrHqQH-CYEvr5z9) NVBL -, (c3bzw ~~ _1.JPG? Set_id = 8800005007) 

But if I try to get them from the array then I do not get any result. Here is the code that I currently have <$> $ Items = "220617293997,250645537939,230485306218,110537213815,180519294810"; $ Number_of_items = Calculation (Explode (",", $ item)); $ Xml = $ baseClass-> g EtContent ("http://open.api.ebay.com/shopping?callname=GetMultipleItems&responseencoding=XML&appid=Morcovar-c74b-47c0-954f-463afb69a4b3&siteid=0&version=525&IncludeSelector=ItemSpecifics, Details and IitemID = $ items"); WriteDoc ( $ Xml, "api.xml"); $ Getvalues ​​= simplexml_load_file ('api.xml'); $ Picture_url = $ getvalue-> items [$ number] -> picture line [2]; Echo "picture url $ picture_url";

Using the code above, I was hoping to remove 2 photo URLs from the array. Thank you in advance for any help!

It can not be tested, I'm scared, but you have var_dump ( $ Photo_url), try to see what $ photo_url is? Maybe it's put in the string?

  "image url" is echo (string) $ picture_url;  

Comments