title: File_get_contents and Preg_match_all Empty Array
body: <p>I am trying to match from a XML not hyperlinked Text and will list it hyperlinked. But it shows only as Array.. What am i doing wrong? Thanks</p>
  
  <pre><code>&lt;?php
  $content = file_get_contents('http://phobos.apple.com/version');
  $download = preg_match_all('~(.*)/iPhone/(.*)Restore.ipsw~', $content, $matches);
  echo $matches[0];
  ?&gt;
  </code></pre>
  
  <p>Example Text to convert into Link
  <a href="http://appldnld.apple.com/iPhone4/061-7939.20100908.Lcyg3/iPhone3,1_4.1_8B117_Restore.ipsw" rel="nofollow">http://appldnld.apple.com/iPhone4/061-7939.20100908.Lcyg3/iPhone3,1_4.1_8B117_Restore.ipsw</a></p>
  
  <p>If matches should be listed like below</p>
  
  <ul>
  <li><a href="http://appldnld.apple.com/iPhone4/061-9858.20101122.Er456/iPhone3,1_4.2.1_8C148_Restore.ipsw" rel="nofollow">http://appldnld.apple.com/iPhone4/061-9858.20101122.Er456/iPhone3,1_4.2.1_8C148_Restore.ipsw</a></li>
  <li><a href="http://appldnld.apple.com/iPhone4/061-7939.20100908.Lcyg3/iPhone3,1_4.1_8B117_Restore.ipsw" rel="nofollow">http://appldnld.apple.com/iPhone4/061-7939.20100908.Lcyg3/iPhone3,1_4.1_8B117_Restore.ipsw</a>.</li>
  <li><a href="http://appldnld.apple.com/iPhone4/061-8619.20100715.4Pnsx/iPhone3,1_4.0.1_8A306_Restore.ipsw" rel="nofollow">http://appldnld.apple.com/iPhone4/061-8619.20100715.4Pnsx/iPhone3,1_4.0.1_8A306_Restore.ipsw</a></li>
  <li>... </li>
  <li>...</li>
  </ul>