Answers for "remove white space underscore and extra characters from a string 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 underscore and extra characters from a string php"

Browse Popular Code Answers by Language