字符串截取 指定字符串到最后1、$str="xxx/aaa/bbb/cccc/ddd";$arr=explode("/", $str);//获取最后一个/后边的字符$last=$arr[count($arr)-1];2、$str = 'a/b/c/d/e/f';echo preg_replace('/.*\//','',$str);