trim « String « PHP






1.Checking the length of a trimmed string
2.Combining trim() and strlen()
3.string trim ( string str [, string trim_chars] ) strips spaces, new lines, and tabs
4.trim() function removes all whitespace from both sides of string