I am getting xml from https://automap.precisionplanting.com/v1/farms/ and now i want to convert it into php array. I have tried many code but no success. Following some of code examples i have implemented.
$url = "https://automap.precisionplanting.com/v1/farms/";
$xml = file_get_contents($url);
$feed = simplexml_load_string($xml);
print_r($feed);
I want to get output in php array and i have tried different ways for it. above i have shown one example.
What can be error in this? how can i solve this?