仅按最后一个分隔符分解
2022-08-30 11:34:10
有没有办法使用分解函数仅按最后一次分隔符发生来分解?
$string = "one_two_ ... _three_four";
$explodeResultArray = explode("_", $string);
结果应该是:
echo $explodeResultArray[0]; // "one_two_three ...";
echo $explodeResultArray[1]; // "four";