PHP Strpos() function is utilized to returns the position of the beginning of the first instance of the string if found and false value otherwise.
Syntax:
strpos(string,find,start)
string : Required. Specifies the string to search
find : Required.Specifies the string being searched for.
start : Optional. Specifies the position at which the search should begin.
Note : This function is case-sensitive.
Example:
<?php
echo stripos("Good Morning","or");
?>
Output will be:
6
Syntax:
strpos(string,find,start)
string : Required. Specifies the string to search
find : Required.Specifies the string being searched for.
start : Optional. Specifies the position at which the search should begin.
Note : This function is case-sensitive.
Example:
<?php
echo stripos("Good Morning","or");
?>
Output will be:
6
0 comments:
Post a Comment