дана ссылка <a href="23094286" id="topic_title">Изменения во взаимодействии с API (Flash/IFrame)</a> как вытащить текст, который внутри? Помогите регуляркой, яв них не шарю. Осваиваю потихоньку
Document Object Model http://www.php.net/manual/en/book.dom.php PHP: <?php $content = file_get_contents('http://yandex.ru/'); $doc = new DOMDocument(); @$doc->loadHTML($content); $anchors_list = $doc->getElementsByTagName('a'); for($i=0; $i<$anchors_list->length; $i++) { $anchor = $anchors_list->item($i); $href = $anchor->getAttribute("href"); if(!$href) continue; $id = $anchor->getAttribute("id"); //... echo $anchor->nodeValue; echo "<br />\n"; } ?> Как-то так.