The trimleft method indicates that, starting from the left side of the string, all the characters (parameters) in the brackets are truncated until no characters in the first brackets appear, even if some characters in the parameter appear later, it will not be truncated. The trimleft method indicates that, starting from the left side of the string, all the characters (parameters) in the brackets are truncated until no characters in the first brackets appear, even if some characters in the parameter appear later, it will not be truncated.
The trimright method is similar.
Remove leading and trailing space characters trimleft () and trimright () of the current string ()
Trim ()
Removes spaces at the beginning and end of a string.
Syntax trim (string)
String: string type. It specifies the string return value of the leading or trailing space to be deleted. If the function is successfully executed, a string with spaces at the header and tail of the string is deleted. If an error occurs, an empty string ("") is returned (""). If the value of any parameter is null, the trim () function returns NULL.