function get_meta_content($file){ $h1count = preg_match_all('/(<meta)(.*="(.*)").\/>/ix',$file,$patterns); $res = array(); array_push($res,$patterns[2]); array_push($res,count($patterns[2])); return $res; }