# 이미지 데이터 가져 오기 preg_match ( '#& lt; a href = & quot; (.*?) & quot; title = & quot; (.*?) "& gt; & lt; img alt = & quot; (.*?) & quot; src = "(.*?) & quot; [\ s*] width ="150 "[\ s*] height ="(.*?) & quot; & lt;/a & gt;#', $ data, $ imagematch); $ im 그러나
& lt; a href = & quot;/wiki/file : sky1.png & quot; title = "파일 : sky1.png"& gt; & lt; img alt = & quot; sky1.png & quot; src = "http : //media-mcw.cursecdn.com/5/56/sky1.png/150px-sky1.png" width ="150 "; 높이 = "84"& quot; & gt;/lt;/a & gt;
또는
# Get Image data preg_match('#<a href="(.*?)" title="(.*?)"><img alt="(.*?)" src="(.*?)"[\s*]width="150"[\s*]height="(.*?)"></a>#', $data, $imagematch); $image = $imagematch[4];
& lt; a href = & wiki/file : tallgrass.gif & quot; title = "파일 : tallgrass.gif"& gt; & lt; img alt = "tallgrass.gif & quot; src = "http : //media-mcw.cursecdn.com/3/34/tallgrass.gif" width = "150"height = & quot; 150 "& gt; & lt;/a & gt;
<a href="/wiki/File:Sky1.png" title="File:Sky1.png"><img alt="Sky1.png" src="http://media-mcw.cursecdn.com/thumb/5/56/Sky1.png/150px-Sky1.png"width="150" height="84"></a>
#& lt; href \ s? = & quot; (.*?) & quot; title \ s? = "(.*?)"& gt; img alt \ s? = "(.*?) & quot; src rc u? = & quot; (.*?) & quot; [\ s*] 너비 \ s? = "150"[\ s*] height; [\ s*] height; 이전 =는 공간이 허용되지만 선택 사항을 의미한다. 부인 성명: 제공된 모든 리소스는 부분적으로 인터넷에서 가져온 것입니다. 귀하의 저작권이나 기타 권리 및 이익이 침해된 경우 자세한 이유를 설명하고 저작권 또는 권리 및 이익에 대한 증거를 제공한 후 이메일([email protected])로 보내주십시오. 최대한 빨리 처리해 드리겠습니다.
Copyright© 2022 湘ICP备2022001581号-3