string
This module provides string manipulation functions. e.g. substring()
, lcase()
, replace()
, etc.
There are no constants.
fcase()
— Uppercase the first character of each word in a stringfind()
— Find the position of the first occurrence of a substring in a stringfindlast()
— Find the position of the last occurrence of a substring in a stringformat()
— Format a numberfromascii()
— Convert an ASCII code to characterhamming()
— Calculate Hamming distance between two strings (string_1
and string_2
)join()
— Join array elements with glue
stringlcase()
— Convert a string to lowercaselength()
— Get the length of a stringlevenshtein()
— Calculate Levenshtein distance between two strings (string_1
and string_2
)ltrim()
— Strip leading spaces from a stringrepeat()
— Repeat a stringreplace()
— Replace all occurrences of the search string with the replacement stringreverse()
— Reverse a stringrtrim()
— Strip trailing spaces from a stringsplit()
— Split a string by separator
str()
— Convert value
to a stringsubleft()
— Extract a specified number of characters from the left side of a stringsubright()
— Extract a specified number of characters from the right side of a stringsubstring()
— Extract a specified number of characters starting from a specified position in a stringtoascii()
— Convert a character to ASCII codetrim()
— Strip leading and trailing spaces from a stringucase()
— Convert a string to uppercaseThere are no classes.