remove line breaks in php code example
Example 1: how remove \r\n from string in php
$text = preg_replace("/\r|\n/", "", $text);
Example 2: remove line break html php
preg_replace( "/\r|\n/", "", $yourString );
$text = preg_replace("/\r|\n/", "", $text);
preg_replace( "/\r|\n/", "", $yourString );