【函数功能】
该函数搜索字符串在指定字符串中最后一次出现的位置,并返回该位置到结尾的所有字符。
	【函数语法】
strrchr ($haystack, $needle)
	【参数说明】
$haystack:必需,要被搜索的字符串。
$needle:必需,要搜索的字符串,如果此参数是数字,则搜索匹配此数字对应的 ASCII 值的字符。
	【演示程序】
<?php
        /**
         * strrchr ($haystack, $needle)
         * **/
        $haystack = "Hello i am PHP!";
        echo strrchr($haystack, "i");//采用默认参数
        echo "<br>";
        echo strrchr($haystack, 105);
?>
	【输出结果】
i am PHP!
i am PHP!
	【特别注意】
1.该函数是二进制安全的。
2.该函数对大小写敏感。
3.PHP 版本:4+。
4.更新日志:在 PHP 4.3 中,该函数成为二进制安全。
5.若未找到指定字符串则返回false。
	【原版定义】
/**
 * Find the last occurrence of a character in a string
 * @link http://www.php.net/manual/en/function.strrchr.php
 * @param haystack string <p>
 * The string to search in
 * </p>
 * @param needle mixed <p>
 * If needle contains more than one character,
 * only the first is used. This behavior is different from that of
 * strstr.
 * </p>
 * <p>
 * If needle is not a string, it is converted to
 * an integer and applied as the ordinal value of a character.
 * </p>
 * @return string This function returns the portion of string, or false if
 * needle is not found.
 */
转载请注明出处:php1234.cn ,原文地址:http://www.php1234.cn/a/functions/2016/1129/142.html