Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
string remove line breaks php
gusmog
Programming language:
PHP
2021-05-10 20:04:02
0
Q:
string remove line breaks php
vaibhav nagpal
Code:
PHP
2021-06-28 06:16:34
preg_replace( "/\r|\n/", "", $yourString );
0
Tags
string
line
php
remove
Related
php remove last character from string
php remove line if it contains string
php remove all whitespace from a string
remove last comma from string php
php remove everything after character
remove empty spaces php
remove last letter php
remove whitespace from string php
remove spaces from string php
php string cut first x characters
php remove dashes from string
remove all spaces php
remove space from string php
php remove after character
remove space from start and end of string in php
php remove last character in string
php remove stop words from string
remove every whitespace php
remove line break html php
New to Communities?
Join the community