특정부분만 뽑아내기 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

특정부분만 뽑아내기 정보

특정부분만 뽑아내기

본문

<div style="position:relative; width:100px; height:75px; float:left">
<img src="http://5389.cbr.com/2008/0111/10025992420080111214122.jpg" width="100px" height="75px" onError="this.src='http://image.cbr.com/imag/default_sum.gif'">
</div>
<div style="position:relative; float:left; margin-left:0.5em">
<b><font style="font-size:13px; font-family:돋움; color:#555555; text-decoration:none">곰인코더 ㅗ^^ㅗ</font></b>
</a>
</div>


위와 같이 쓴 글에서...
 
<img src="http://5389.cbr.com/2008/0111/10025992420080111214122.jpg" width="100px" height="75px" onError="this.src='http://image.cbr.com/imag/default_sum.gif'">

위소스의

10025992420080111214122 를 따로 빼서 DB에 저장하려고 합니다...
 
preg_match_all 함수로는 안되더라구요...
 
다른 함수로 가능한가요??

10025992420080111214122 만 뽑을수 있는 방법 있을까요??

댓글 전체

$xlink = "http://5389.cbr.com/2008/0111/10025992420080111214122.jpg";
$temp = explode("/",$xlink);
$cnt = count($temp)-1;
$file_name = $temp[$cnt];
echo $file_name;

급조한 거에요. 응용하세요
감사합니다...
헌데...

<div style="position:relative; width:100px; height:75px; float:left">
<img src="http://5389.cbr.com/2008/0111/10025992420080111214122.jpg" width="100px" height="75px" onError="this.src='http://image.cbr.com/imag/default_sum.gif'">
</div>
<div style="position:relative; float:left; margin-left:0.5em">
<b><font style="font-size:13px; font-family:돋움; color:#555555; text-decoration:none">곰인코더 ㅗ^^ㅗ</font></b>
</a>
</div>

위 내용에서
http://5389.cbr.com/2008/0111/10025992420080111214122.jpg

은 어떻게 뽑을수 있나요???
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT