Как подсчитать кол-во найденных совпадений preg_match_all? preg_match_all("/test (.*)<\/a>/", $out, $text);