PHP remove blank line - PHP에서 빈줄 제거하기
페이지 정보
본문
PHP 에서 빈줄 제거하기, 공백 라인 삭제 하기
$string = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);
* 참고
https://stackoverflow.com/questions/709669/how-do-i-remove-blank-lines-from-text-in-php
$string = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);
* 참고
https://stackoverflow.com/questions/709669/how-do-i-remove-blank-lines-from-text-in-php
추천0
댓글목록
등록된 댓글이 없습니다.