The trim function is to delete spaces in text. The main function of this function is to remove all spaces in the text except for single spaces between words. Its syntax is "TRIM(text)", where the parameters text is required, indicating that spaces need to be removed from the text.
The operating environment of this article: Windows 7 system, Microsoft Office Excel 2003 version, Dell G3 computer.
Related learning recommendations: excel tutorial
TRIM function is used to clear spaces in excel. Except for a single space between words, all spaces in the text will be cleared. . You can use the function TRIM when retrieving text with irregular spaces from other applications.
TRIM(text)
text is required, indicating that the text in which spaces need to be removed.
The main function of the TRIM function is to remove all spaces in the text except single spaces between words.
The TRIM function is designed to remove the 7-bit ASCII space character (value 32) from text. In the Unicode character set, there is an extra space character called the nonbreaking space character, which has a decimal value of 160. This character is commonly used in web pages as an HTML entity . The TRIM function itself does not remove this non-breaking space character.
The above is the detailed content of What does the trim function do to delete text?. For more information, please follow other related articles on the PHP Chinese website!