2010-June-11
<remove>2010-June-2</remove>
<remove>2010-June-3</remove>
2010-June-15
2010-June-16
2010-June-17
2010-June-3
2010-June-2
2010-June-1
我正在尝试查找<remove>
标签之间的所有实例
这就是我所拥有的:
$pattern = "/<remove>(.*?)<\/remove>/";
preg_match_all($pattern, $_POST['exclude'], $matches);
foreach($matches as $deselect){
foreach ($deselect as $display){
echo $display."<br />";
}
}
这是它返回的内容:
2010-June-2
2010-June-3
2010-June-2
2010-June-3
为什么它会加倍,我该如何防止呢?