PHP strrpos() function searches backward from end of the string, rather than forward from the beginning. The search string must only be one character long and there is no optional position argument. Returns FALSE if match not found.
Syntax:
strrpos(string,find,start)
string : Required. Specifies the string to examined.
find : Required. Specifies the string to find
start : Optional. Specifies starting position of the first string.
Note : This function is case-sensitive.
Example:
<?php
echo strrpos("Good Morning","o");
?>
Output will be:
6
Syntax:
strrpos(string,find,start)
string : Required. Specifies the string to examined.
find : Required. Specifies the string to find
start : Optional. Specifies starting position of the first string.
Note : This function is case-sensitive.
Example:
<?php
echo strrpos("Good Morning","o");
?>
Output will be:
6
0 comments:
Post a Comment