title: Why doesn't a PHP regex return an array?
body: <p>My code is supposed to return an array containing a weather summary, but does not.  </p>
  
  <p>How can I make this work?  </p>
  
  <p>This is part of a course I'm taking on <code>Udemy.com</code>; my code exactly matches my instructor's, but doesn't return the same results. </p>
  
  <p>I didn't find any syntax errors so there is something else that I'm either missing or nescient of..</p>
  
  <pre><code>$contents=file_get_contents("http://www.weather-forecast.com/locations/San-Francisco/forecasts/latest");
  
  preg_match('3 Day Weather Forecast Summary:&lt;\/b&gt;&lt;span class="phrase"&gt;(.*?)&lt;/s', $contents, $matches);
  
  print_r($matches);
  </code></pre>