1.The indexOf() method, searches the string position from front to back, is case-sensitive, and starts counting from 0. In the same way, the lastIndexOf() method works from back to front. The output results of the two methods are the same for the same search conditions
For example:
2.length is accessed in the form of "XXX.length" because it is not found It is a method of string object
3.substr() method, used for string interception, one required parameter, one optional parameter, counting from 0
4. The charAt() method is used to return the character at the specified position, counting from 0
5.split() method, used to split a string into a string array
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn