<?php $str='PHP is a very good programming language!'; //定义一个字符串 echo strrchr($str,'o'); //输出最后一次出现字母p的位置到字符串结尾的所有字符串 ?>