<?php
for($get_page ="",$i=0;$i<10;$i++)
$get_page .= "
<h3 class=\"t_i_h3\">
<a title=\"".md5(mt_rand(1,1000))."\" href=\"".md5(mt_rand(1,1000))."\" name=\"".md5(mt_rand(1,1000))."\"> ".md5(mt_rand(1,1000))."</a>
</h3>
" . md5(mt_rand(1,1000));
preg_match_all("~".
"\s*".
"\s*<h3.*?t_i_h3.?>".
"\s*<a\s*title\=\"(.*?)\"\s*href\=\"(.*?)\"\s*name\=\"(.*?)\"\s*>(.*?)</a>".
"\s*</h3>".
"\s*".
"\s*".
"~msi", $get_page, $result, PREG_SET_ORDER );
print_r($result);
?>