title: php xpath returns node value as Array
body: <p>Im using xpath to get values for a cms page, </p>
  
  <pre><code>video?id=blahblah
  </code></pre>
  
  <p>My PHP Xpath Code is</p>
  
  <pre><code>&lt;?php
  $db = simplexml_load_file("data.xml");
  $title = $db-&gt;xpath("//video[@id=$id]/title");
  </code></pre>
  
  <p>Im doing this for all values, below is my xml code</p>
  
  <pre><code>&lt;data&gt;
  &lt;video id="1"&gt;
  &lt;title&gt;Test&lt;/title&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>I want the title heading to say Test but it says array instead</p>