Answers for "how to remove \r\n from string php"

PHP
7

undo local commit

$ git reset --soft HEAD~1
Posted by: Guest on April-09-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

Browse Popular Code Answers by Language