PHP 字符串处理 汇总 2019/5/3 PHP 1 Comments 2,109 Views 1 Times 截取某个字符之前的字符串 // 如下为截取 "-" 字符前的字符串$str = "hello-world"; $new_string = substr( $str, 0, strrpos($str, ......