I'm trying to pull the weather from the weather network. This code gives it to me, but it looks pretty long, and returns two values in the array (that's why I need to return $output[1] and not $output[0]), when I only want it to return one. Any ideas?
$url=file_get_contents("http://www.theweathernetwork.com/weather/cans0057?ref=homecity");
preg_match('/<div id="obs_conds" class="hslice">.*?<img.*?alt="(.*?)".*?<\/div>/s',$url,$output);
print_r($output[1]);