PHP Source:
<
!DOCTYPE
html
>
<
html
>
<
body
>
<?php
$str =
" Hello World! "
;
echo
"Without trim: "
. $str;
echo
"<br>"
;
echo
"With trim: "
. trim($str);
?>
<
/body
>
<
/html
>
Result: