修改一段代码,高手指教了
$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;