I라는 DIV의 내용을 얻기 위해 노력하고 있어요 : <img id="hplogo-img" src="thelinkiwant"/>
는 preg_match 사업부의 내용을 얻을 수
I가 작동하지 않는 코드, 그냥의 '배열'에코있다 :
<?php
include_once('simple_html_dom.php');
$html = file_get_html($url);
preg_match('/<img id= \'hplogo-img\'>(.*)<\/div>/s',$html,$matches);
echo $matches;
?>
하는 경우를 PHP가 선호하는 똑같은 방법으로이 작업을 수행 할 수 있습니다. 어떤 아이디어가 왜 내가 div에서 링크를 얻을 수없는거야?