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