title: Convert Xml to php string
body: <p>I am using below code for converting xml response to php string but I am getting below error</p>
  
  <blockquote>
    <p>"Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '&lt;' not found....."<br>
    "Warning: simplexml_load_string(): example.com...."<br>
    "Warning: simplexml_load_string(): ^ in /home/example/public_html/example.php on line 9"</p>
  </blockquote>
  
  <pre><code>&lt;?php
  echo '&lt;?xml version="1.0" encoding="utf-8" ?&gt;';
  $url= "example.com";
  $xml = simplexml_load_string($url);
  echo $xml-&gt;status;
  ?&gt;
  </code></pre>