0
내가 노력의 PHP DOMDocument를 작동하지 getElementsByClassName가 iframe을에서 src에 대해 getAttribute를 얻을
을 (내가 클래스 이름으로 그들에게 전화하려고 html로 다른 iframe을있을 것이다) :
$html = "<iframe width='100%' height='600' class='report' id='CReport' src=' http://www.example.com' ></iframe>";
$doc = new DOMDocument();
@$doc->loadHTML($html);
$tags = $doc->getElementsByClassName('report');
$url = $tags->getAttribute('src');
echo $url;
누구? 많은 것을 시도했습니다 – newuser0250