if($xmlobj = simplexml_load_string(file_get_contents($xml_feed)))
{
$result = $xmlobj->xpath("TrafficMeta");
}
The above code returns the desired result and when viewed with print_r it shows this, which is what I want to get (sessionId):
Array ( [0] => SimpleXMLElement Object ( [sessionId] => tbfm1t45xplzrongbtbdyfa5 ) )
How can I make this sessionId into a string?