Query: trim
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TRIM(3) 1 TRIM(3) trim - Strip whitespace (or other characters) from the beginning and end of a stringSYNOPSISstring trim (string $str, [string $character_mask = " 0r B"])DESCRIPTIONThis function returns a string with whitespace stripped from the beginning and end of $str. Without the second parameter, trim(3) will strip these characters: o " " (ASCII 32 ( 0x20)), an ordinary space. o " " (ASCII 9 ( 0x09)), a tab. o " " (ASCII 10 ( 0x0A)), a new line (line feed). o " " (ASCII 13 ( 0x0D)), a carriage return. o "