php strripos() function
Translation results:
英[strɪŋ] 美[strɪŋ]
n.String; rope, belt; thread, plant fiber; [Computer Science] String
vt. Winding, tuning; To line up in a line or a series; to tie, tie or hang with a thread; to extend or extend
Third person singular: strings Plural: strings Present participle: stringing Past tense: strung Past participle: strung
php strripos() functionsyntax
Function:Find the last occurrence of a character in a string, case-insensitive
Syntax: strripos(string,find,start)
Parameters:
Parameters | Description |
string | Required. Specifies the string to be searched for. |
find | Required. Specifies the characters to search for. |
start | Optional. Specifies where to start the search. |
Description: Find the last occurrence of a string in another string. The strripos() function is not case sensitive.
php strripos() functionexample
<?php echo strripos("You love php, I love php too!","PHP"); ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
21
<?php echo strripos("PHP is a good development language! I love PHP","php"); ?>
Run Instance»
Click the "Run Instance" button to view the online instance
Output:
43