Answers for "remove white space and new line form string using php"

PHP
1

remove whitespace from string php

$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
Posted by: Guest on July-10-2020

Code answers related to "remove white space and new line form string using php"

Browse Popular Code Answers by Language