<code>$str = "fhd\r\n\r\nfdfk\r\n\r\nuuuuu"; $data = preg_split("(\r\n){2}", $str, -1); print_r($data); </code>
结果:
<code>$str = "fhd\r\n\r\nfdfk\r\n\r\nuuuuu"; $data = preg_split("(\r\n){2}", $str, -1); print_r($data); </code>
结果:
<code> $str = "fhd\r\n\r\nfdfk\r\n\r\nuuuuu"; $data = preg_split("/(\r\n){2}/", $str, -1); print_r($data);</code>