TOOLS.PERVII.COM

Online Conversion Tools

function nl2br()
Inserts HTML-code line breaks before all newlines in a string.
Returns a string, where before each newline (\r\n,\n\r,\n and \r) inserted '<br />' or '<br>'..

PHP function nl2br()

string nl2br ( string $data )

Example:
string_1
string_2
string_3
=>
string_1<br />
string_2<br />
string_3


Text:


PHP code: nl2br.php

Online PHP functions
Encoding strings
base64_encode
base64_decode
rawurlencode
rawurldecode
urlencode
urldecode
Encryption
md5
sha1
Length of string
strlen
mb_strlen
crc32
Processing strings
nl2br
strrev
Get all headers
exif_read_data
Converts (IPv4)
ip2long
long2ip
CIDR
IPv4 CIDR calculator
IPv4 CIDR to Host Range
IPv6 CIDR to Host Range
ACL - Access Control List
IP Allow, Deny .htaccess
IP Allow, Deny, Reset FreeBSD
uTorrent IPfilter.dat by country