Jump to content

Echo Array result


xcandiottix

Recommended Posts

$xml = simplexml_load_file("http://www.site.com/users/".$userid.".xml");
$bannerdata = $xml->xpath("/User/settings/main_table/Banner");
print_r($bannerdata);

 

Shows:

Array ( [0] => SimpleXMLElement Object ( [0] => http://www.site.com/graphics/default/member_banner.gif ) )

 

But I don't want to show anything, I just want to put the URL into a variable... how can I extract the URL?

like this:

$url = "http://www.site.com/graphics/default/member_banner.gif"

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/207211-echo-array-result/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.