curl 특정부분만 가져와서테이블로 뿌려주려면 어떻게 해야 되나요? 채택완료
rqwr
8년 전
조회 1,930
<?php
include_once('simple_html_dom.php');
$url = "http://daum.com">http://daum.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$output = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
//print_r($output);
echo $output;
?>
이렇게하면 전체를 가져오는데
<th><font>123</font></th>
이런식으로 되어있는데 여기안에 123글자를 456으로 바꿔서 테이블로 뿌려주고싶은데 이럴경우에
어떻게 해야하는지 궁금합니다. api문서에서 어디를 봐야하는건지.. 초보라서 이해가 잘 안갑니다
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인