Sr.No. | Function | Description |
---|---|---|
1 | strlen() | Calculates the number of characters in a string |
2 | str_repeat() | Repeats a string no. of times you want |
3 | strrev() | Retrun reverse of a given string |
4 | substr() | Retrieves a section of a string |
5 | str_word_count() | Calculates the number of words in a string |
6 | strcmp() | Compares two strings |
7 | trim() | removes leading and trailing whitespaces from a string |
8 | str_replace() | Replaces parts of a string |
9 | strtoupper() | Converts in Uppercases a string |
10 | strtolower() | Converts in Lowercases a string |