Просмотр поста #77157: Помогите написать код

.
ramzes

preg_match_all('#href[^>]+id=([\d])#is', $text, $match);
print_r($match);
Так попробуй