Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Menu
nl2br « Utility Function « PHP
PHP
Utility Function
nl2br
1.
string nl2br ( string str ) inserts a HTML line break (
) before all new line characters
2.
string nl2br ( string string ): changes any new line characters found in the data string into
.
3.
Wrapping Text with wordwrap() and nl2br()
4.
nl2br() function converts all newline (\n) characters to their HTML equivalent
.
5.
convert the newlines to