Go to the source code of this file.
Functions | |
| strposnth ($haystack, $needle, $nth=1, $insenstive=0) | |
| strleft ($s1, $s2) | |
| count_words ($string) | |
| count_words | ( | $ | string | ) |
Definition at line 93 of file shared-strings.php.
| strleft | ( | $ | s1, | |
| $ | s2 | |||
| ) |
| strposnth | ( | $ | haystack, | |
| $ | needle, | |||
| $ | nth = 1, |
|||
| $ | insenstive = 0 | |||
| ) |
Str Pos Nth (Position of nth occurance of a string) A handy function to get the position of nth occurance of a substring in a string, with an optional param to make it case insenstive. I am calling it strposnth, suggestions welcome.
Third optional parameter gets the value of n, e.g puting in 2 will return position of second occurance of needle in haystack: Valid inputs (1 = default) 2,3,4.....
Fourth optional parameter can be used to specify the function as case insenstive: Valid inputs (0 = case senstive = default) 1 = case insenstive.
Courtesy of webKami [at] akdomains.com in the php.net manual
Definition at line 28 of file shared-strings.php.
References $i.
Referenced by parse_userlists().
1.5.5