본문 바로가기

프로그램 경험/PHP

[PHP] 엔터 제거


싱글 쿼테이션으로 하면 제거 안된다. 

꼭 더블 쿼테이션 사용하라.


$cont = str_replace("\r\n", "", $row['content']);