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