remove white space from string in php online code example
Example: remove whitespace from string php
$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);
$str = "\n\n\nHello World!\n\n\n";
echo "With trim: " . trim($str);