Answers for "trim new lines + php"

PHP
0

string remove line breaks php

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

how to trim text php

$text = "      hello world   ";
$text = trim($text);

=> "hello world"
Posted by: Guest on September-28-2020

Browse Popular Code Answers by Language