PHP remove blank line - PHP에서 빈줄 제거하기 > 개발

본문 바로가기

사이트 내 전체검색

뒤로가기 개발

PHP remove blank line - PHP에서 빈줄 제거하기

페이지 정보

작성자 관리자 (61.♡.222.236) 작성일 18-11-24 17:05 조회 4,441 댓글 0

본문

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

댓글목록 0

등록된 댓글이 없습니다.

전체 386건 11 페이지
게시물 검색
Copyright © Baragi.Net All rights reserved.
PC 버전으로 보기