日期:2014-05-16 浏览次数:20508 次
$char = "<div>11111</div><div>22222</div><div>33333</div>";
preg_match_all("|<div>(.*)</div>|U", $char, $out,PREG_PATTERN_ORDER);
echo $out[0][0];
echo $out[0][1];
echo $out[0][2];
$char = "<div>11111</div><div>22222</div><div>33333</div>";
preg_match_all("
------解决方案--------------------
<div>(.*)</div>
------解决方案--------------------
U", $char, $out,PREG_PATTERN_ORDER);
shuffle($out[0]);
$s= join('',$out[0]);
echo $s;