英[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 stripos() function syntax
Function:Find the first occurrence of a character in a string, case-insensitive
Syntax: stripos(string,find,start)
Parameters:
Parameters | Description |
string | Required. Specifies the string to search for. |
find | Required. Specifies the characters to search for. |
start | Optional. Specifies the location from which to start the search. |
Description: Find the first occurrence of a string in another string (not case sensitive). The stripos() function is case-insensitive. This function is binary safe.
php stripos() function example
<?php echo stripos("You love php, I love php too!","PHP") ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
9
<?php echo stripos("PHP is a good development language!","php"); ?>
Run Instance»
Click the "Run Instance" button to view the online instance
Output:
0