<html>
<body>
$str = "\n\n\nHello World!\n\n\n";
echo "Without trim: " . $str;
echo "<br>";
echo "With trim: " . trim($str);
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_trim3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:51:07 GMT -->
</html>