Answers for "remove new lines php"

PHP
19

git cancel last commit

git reset --soft HEAD~1
Posted by: Guest on March-30-2020
1

pop last commit git

#this  will preserve changes done to your files
git reset --soft HEAD~1

#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
Posted by: Guest on January-15-2021
0

how remove \r\n from string in php

$text = preg_replace("/\r|\n/", "", $text);
Posted by: Guest on January-30-2021
1

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

Browse Popular Code Answers by Language