Can't get regular expression to work in PHP. Just outputs the word Array
<p>I'm having trouble getting a regexp in PHP to work. It's supposed to get the string between the  tags on a web page, but all I get in return is the word Array when I try to echo it.</p>

<p>This is the text I'm using the regexp on. It's part of a web page downloaded as a string.</p>

<pre><code>&lt;title&gt;
HTC  Desire S
&lt;/title&gt;
</code></pre>

<p>This is the code I'm using for the regular expression.</p>

<pre><code>while(!feof($list_of_phones))
{
      $phone = fgets($list_of_phones);
      $info = file_get_contents($phone);
      preg_match_all("/\/&lt;title&gt;(.*)&lt;\/title&gt;/", $info, $title, PREG_OFFSET_CAPTURE);
      echo $title[0];
}
</code></pre>
