Answers for "php how to delete a blank line"

PHP
5

php remove newline

//Replace the newline and carriage return characters
//using regex and preg_replace.
$text = preg_replace("/\r|\n/", "", $text);
Posted by: Guest on December-09-2020
0

string remove line breaks php

preg_replace( "/\r|\n/", "", $yourString );
Posted by: Guest on May-18-2020

Browse Popular Code Answers by Language