Online PHP trim() function


Strip whitespace (or other characters) from the beginning and end of a string.
This function returns a string with whitespace stripped from the beginning and end of str.
string trim ( string $str [, string $character_mask = " \t\n\r\0\x0B" ] )
<?php
Hello World!