특정부분만 뽑아내기 > 그누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

은 어떻게 뽑을수 있나요???
© SIRSOFT
현재 페이지 제일 처음으로