nl2br

(PHP 3, PHP 4 )

nl2br -- 뉴라인을 HTML 라인 브레이크(<BR>)로 변환한다.

설명

string nl2br ( string string)

뉴 라인 전에 '<BR>' 가 삽입된 string을 반환한다.

htmlspecialchars(), htmlentities() 그리고 wordwrap()을 참고하라.