php代码段: $str = "23-qwewwuioakoji"; //这里分别要截取以“-”分隔的前后两个不定长的字符串list($number, $random) = explode("-", $str);echo $number;echo $random; output: 23 qwewwuioakoji