目前我正在爆炸一个字符串,.
它可以按我喜欢的方式工作。唯一的问题是当.
作为小数点出现时也会爆炸。有没有办法decimal
从爆炸功能中排除点?
我目前的设置:如您所见,它.
在两个数字之间爆炸式增长
$String = "This is a string.It will split at the previous point and the next one.Here 7.9 is a number";
$NewString = explode('.', $String);
print_r($NewString);
output
Array (
[0] => This is a string
[1] => It will split at the previous point and the next one
[2] => Here 7
[3] => 9 is a number
)