물에 살고싶은 개발자

php <textarea> 엔터가 저장이 안되는 경우 본문

php

php <textarea> 엔터가 저장이 안되는 경우

돼지사랑 2017. 5. 27. 17:42

출처 : http://tistory.devari.kr/176



string nl2br ( string $string [, bool $is_xhtml ] )


이 함수를 써주자


$postContent = nl2br($postContent);



예제는 이와같다.



Comments