strlen("String1") - Get the value of the length of the string "String".
tfind("String1", "String2") - Search for substring "String2" in string "String1". Returns an integer value equal to the number of the first occurrence of the substring, starting from 1. In case of an error (the substring was not found), the value 0 is returned.
treplace("String1", "String2", "String3") - Replacing the substring "String2" with the substring "String3" in the string "String1". Returns the text value, with the replaced value.
tword( ) - This function allows you to get a word from a sentence.
The function takes two parameters: the first text parameter is the original sentence, the second real parameter is the number of the word to be received.
Example:
$NAME = tword ("Queen Elizabeth II ", 2)
In this case, the $NAME variable will be assigned the value "Elizabeth".
tpart( ) - This function allows you to get part of a string.
It takes three parameters: the first is textual - the original string, the second integer is the number of the starting character of the substring to be obtained, the third integer is the number of characters to be included in the substring.
Example:
$date = tpart ("24.02.97",1,2)
In this example, the variable $date will be set to "24".
reverse("str") - Reflects a string or number in reverse order.
Any number or string can be directly placed in the reverse() function.
You can specify a variable whose value will be reflected.
The type of the variable must match the type of the value.