Answers for "php remove \t \n in string"

PHP
19

git cancel last commit

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

how to recover last commit git

//the below code can recover your last commited files 
git checkout -f
Posted by: Guest on April-25-2021
0

git move back one commit

# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Posted by: Guest on November-06-2020
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