<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>