【发布时间】:2011-04-22 10:48:58
【问题描述】:
preg_match_all('/<img(.*)width="9" height="9" alt="(.*)" title="" />/' , $html , $sources );
foreach($sources[1] as $alt){
echo $alt."<br\>";
}
我想在所有图像中列出从 html 页面匹配的所有 alt 标记值 怎么了?
我想使用正则表达式而不是 dom。
【问题讨论】:
标签: php preg-match-all