title: How to extract variable from http_get response
body: <p>I have successfully completed an HTTP GET request using PHP and cURL. How do I extract a variable from the response?</p>
  
  <p>Here is the response I am receiving:</p>
  
  <pre><code>
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;string xmlns=&quot;http://ws.example.com/resumes/&quot;&gt;
    &lt;Packet&gt;
      &lt;Errors /&gt;
      &lt;SessionToken&gt;1234567890&lt;/SessionToken&gt;
    &lt;/Packet&gt;
  &lt;/string&gt;
  </code></pre>
  
  <p>I need to extract the "1234567890" and set it as a PHP the $sessionid variable.</p>
  
  <p>How can I do this?</p>