Getting Started with PHP: strrchr Example Tutorials
Definition and usage
The STRRCHR () function determines the position of a string that takes place on a series of another string and returns all characters starting from this position to the end.
If the character cannot be found, this function returns FALSE.
Grammar
STRRCHR (String,char)
Parameter Description
String must be selected. Specifying a search string
Char must be selected. The specified string. If this is a number, it will seek to match the ASCII value of the character to this number
Hint and description Hint: This feature is binary safe.
Example 1 echo strrchr ("Hello world!", "World");
?>
Output results.
world!
Let's look at a STRRCHR instance.
Example 2
In this example, we will search for the ASCII value of the string "0":
Echo strrchr ("Hello world!", 111);
?>
Output results. orld!
Www.111cn.cn/phper/php.html
http://www.bkjia.com/PHPjc/445516.html www.bkjia.com true http://www.bkjia.com/PHPjc/445516.html techarticle Getting Started with PHP: STRRCHR instance Tutorial definition and usage the STRRCHR () function determines the position on which a series of other strings have occurred, and returns all characters from this standpoint to the end ...