<td width="3" height="20"><img src="http://file.mutnam21.cafe24.com/Design/skin_4/product_c_3_image_url_3.jpg"></td>
<td width="100">색상</td>
<td width="2">:</td>
<td width="300">
<!-- UNIT u4 시작 --> <select onchange="setItem();" class="option_item" id="option0" class="selectbox" setImage="http://file.mutnam21.cafe24.com/Design/skin_4/img/sub/option_bar.jpg" style="behavior:url('/web/selectbox.htc');width:200px;FONT-SIZE: 9pt;cursor:pointer" name="option0" >
<option value='' >옵션을 선택해 주세요</option><option value='색상||AF8M65+%28%ED%99%94%EC%9D%B4%ED%8A%B8%EB%B2%A0%EC%A0%A4%29' >AF8M65 (화이트베젤)</option><option value='색상||AF8M71+%28%EB%B8%94%EB%9E%99%EB%B2%A0%EC%A0%A4%29' >AF8M71 (블랙베젤)</option>
</select> <!-- UNIT u4 종료 -->
....................................................................................................................................
怎么找不到options
if(preg_match_all("@<td width=\"3\" height=\"20\"><img src=\".*\"></td>[\r\n\s]*<td width=\"100\">(.*)</td>[\r\n\s]*<td width=\"2\">:</td>[\r\n\s]*<td width=\"300\">[\r\n\s]*<!-- UNIT u4 시작 -->[\r\n\s]*<select.*>(.*)</select>@siU", $this->content, $options))
{
print_r($options);exit; // 怎么找不到options
<td width="100">색상</td>
<td width="2">:</td>
<td width="300">
<!-- UNIT u4 시작 --> <select onchange="setItem();" class="option_item" id="option0" class="selectbox" setImage="http://file.mutnam21.cafe24.com/Design/skin_4/img/sub/option_bar.jpg" style="behavior:url('/web/selectbox.htc');width:200px;FONT-SIZE: 9pt;cursor:pointer" name="option0" >
<option value='' >옵션을 선택해 주세요</option><option value='색상||AF8M65+%28%ED%99%94%EC%9D%B4%ED%8A%B8%EB%B2%A0%EC%A0%A4%29' >AF8M65 (화이트베젤)</option><option value='색상||AF8M71+%28%EB%B8%94%EB%9E%99%EB%B2%A0%EC%A0%A4%29' >AF8M71 (블랙베젤)</option>
</select> <!-- UNIT u4 종료 -->
....................................................................................................................................
怎么找不到options
if(preg_match_all("@<td width=\"3\" height=\"20\"><img src=\".*\"></td>[\r\n\s]*<td width=\"100\">(.*)</td>[\r\n\s]*<td width=\"2\">:</td>[\r\n\s]*<td width=\"300\">[\r\n\s]*<!-- UNIT u4 시작 -->[\r\n\s]*<select.*>(.*)</select>@siU", $this->content, $options))
{
print_r($options);exit; // 怎么找不到options
$content =<<<EOT
<td width="3" height="20"><img src="http://file.mutnam21.cafe24.com/Design/skin_4/product_c_3_image_url_3.jpg"></td>
<td width="100">색상</td>
<td width="2">:</td>
<td width="300">
<!-- UNIT u4 시작 --> <select onchange="setItem();" class="option_item" id="option0" class="selectbox" setImage="http://file.mutnam21.cafe24.com/Design/skin_4/img/sub/option_bar.jpg" style="behavior:url('/web/selectbox.htc');width:200px;FONT-SIZE: 9pt;cursor:pointer" name="option0" >
<option value='' >옵션을 선택해 주세요</option><option value='색상||AF8M65+%28%ED%99%94%EC%9D%B4%ED%8A%B8%EB%B2%A0%EC%A0%A4%29' >AF8M65 (화이트베젤)</option><option value='색상||AF8M71+%28%EB%B8%94%EB%9E%99%EB%B2%A0%EC%A0%A4%29' >AF8M71 (블랙베젤)</option>
</select> <!-- UNIT u4 종료 -->
EOT;
if(preg_match_all("@<td width=\"3\" height=\"20\"><img src=\".*\"></td>[\r\n\s]*<td width=\"100\">(.*)</td>[\r\n\s]*<td width=\"2\">:</td>[\r\n\s]*<td width=\"300\">[\r\n\s]*<!-- UNIT u4 시작 -->[\r\n\s]*<select.*>(.*)</select>@siU", $content, $options));
echo $options[0][0]; //print_r($options);
?>