returns a reversed string in characters. 【扩展信息:基于VFW的视频应用程序开发】
search
搜索
index(string,_substr)">$mbcs->index(string, substr) index(string,_substr,_position)">$mbcs->index(string, substr, position)returns the position of the first occurrence of substr in string at or after position. if position is omitted, starts searching from the beginning of the string.
if the substring is not found, returns -1.
反向搜索
rindex(string,_substr)">$mbcs->rindex(string, substr) rindex(string,_substr,_position)">$mbcs->rindex(string, substr, position)returns the position of the last occurrence of substr in string at or after position. if position is specified, returns the last occurrence at or before that position.
if the substring is not found, returns -1.
strspn(string,_searchlist)">$mbcs->strspn(string, searchlist) 搜索第一个串中不包含在第二个串的字符集合中的字符的位置returns returns the position of the first occurrence of any character not contained in the search list.
$mbcs->strspn("+0.12345*12", "+-.0123456789"); # returns 8.if the specified string does not contain any character in the search list, returns 0.
the string consists of characters in the search list, the returned value equals the length of the string.
... 下一页