
22.02.2010, 05:31
|
|
Постоянный
Регистрация: 05.12.2004
Сообщений: 647
Провел на форуме: 1698585
Репутация:
818
|
|
PHP код:
<?php
$data = <<<HTML
<div class="itemtext nop "style="margin-left:0">
<img src="/img/status/xStatus_14.gif" alt="Статус" title="Статус" height="15" width="16"/>
Прихожу в себя ...
<div class="infobar"><div class="source ">
<a href="/msg/52678751">более 5 часов назад</a> через <a class="nobg" href="http://qip.ru/ru/pages/download_infium_ru/" title="QIP Infium">qip</a></div>
<div class="fr small">
<a class="msg_ans_ie6fl" href="/msg/52678751" onclick="return login('/msg/52678751');">ответить</a> </div>
HTML;
if(preg_match('#<img src="(.*)" alt="Статус" title="Статус" height="15" width="16"/>(.*)<div#Uis', $data, $m))
echo 'Статус-ссылко: <b>'.$m[1].'</b><br>Статус-текст<b>'.$m[2].'</b>';
?>
|
|
|