Answers for "remove new lines php from string"

PHP
2

undo last commit

#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 December-16-2020
-1

how to abandon changes and go last commit

#ignore all changes, and back to last commit 

git add .
git stash
Posted by: Guest on November-11-2020
0

how remove \r\n from string in php

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

string remove line breaks php

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

Code answers related to "remove new lines php from string"

Browse Popular Code Answers by Language