$random = file_get_contents('http://bash.org.ru/random'); preg_match_all('#<div class="vote">(.*?)</div>(.*?)<div>(.*?)</div>#is', $random, $ma4); print_r($ma4[3]);