Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php replace \n by <br>
user100858
Programming language:
PHP
2021-04-25 01:30:49
0
Q:
php replace \n by <br>
user60476
Code:
PHP
2021-06-06 06:06:39
$var = str_replace(array("\r\n","\n"),'<br>', $var);
0
Tags
php
replace
Related
php string replace
php replace
replace all numbers in string php
php replace two spaces with one
php replace string within string
string replace in php
find and replace in php
php replace spaces with dash
php insert hyphen into spaces in string
php str replace
replace multiple characters one string php
replace all php
php substr_replace
php preg replace
php replace space with underscore
php replace all spaces with dashes
php replace return character
php str_replace
New to Communities?
Join the community