0
找一部電影價格表我需要從IMDB形式圖片的alt一個電影評級表從IMDB
<img width="44" height="15" title="PG_13" class="absmiddle" src="http://i.media-imdb.com/images/SF9c87441dc1ac3081c7de5a78d8864764/certificates/us/pg_13.png" **alt="PG_13"**>
我的代碼(錯誤的):
$arr['rate'] = $this->match('/<img class=\"absmiddle\" src=\"\(.*?)\" alt=\"\(.*?)">/ms', $html, 1);
看看在這個答案http://stackoverflow.com/questions/138313/how-to-extract-img-src-title-and-alt-from-html-using-php – Babblo 2012-04-28 16:58:56