Answers for "remove space and new line in text file by php"

PHP
0

string remove line breaks php

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

php remove space before and after string

$words = '      my words     ';
$words = trim($words);
var_dump($words);
// string(8) "my words"
Posted by: Guest on January-28-2021

Code answers related to "remove space and new line in text file by php"

Browse Popular Code Answers by Language