I have created a simple function for fetching xml:
function meteor(){
$request_url = "http://site.com/xml.xml";
$xml = simplexml_load_file($request_url) or die("feed not loading");
return $xml;
}
But I cant call to this function:
$xmls = new meteor();
echo $xmls->Kemo->Area;
I have not any output because meteor in not a class. In this situation, how can fetch data from function? Thanks in advance