특정부분만 뽑아내기

<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 만 뽑을수 있는 방법 있을까요??
|

댓글 2개

$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

은 어떻게 뽑을수 있나요???
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,550
18년 전 조회 1,599
18년 전 조회 1,660
18년 전 조회 1,496
18년 전 조회 1,602
18년 전 조회 1,565
18년 전 조회 1,507
18년 전 조회 1,628
18년 전 조회 1,580
18년 전 조회 1,518
18년 전 조회 1,387
18년 전 조회 1,559
18년 전 조회 1,390
18년 전 조회 1,558
18년 전 조회 1,526
18년 전 조회 1,506
18년 전 조회 1,524
18년 전 조회 1,510
18년 전 조회 3,463
18년 전 조회 1,509
🐛 버그신고