Use a temporary variable to hold the matches:
private function grab_title_from_curl ($pull){
$matches = array();
preg_match("/<meta name=\"title\" content=\"(.*?)\"/", $pull, $matches) ;
$data['title'] = $matches[0];
return $data;
}
Rob Olmos
2010-09-01 23:04:51