我想做的是*从字符串中删除a及其后面的数字。
*
$string = 'something*10'; $string2 = 'something*1';
需要输出
something something
不是
something*10 something*1
$string = current(explode('*', 'something*10'));
如在这里找到:REF
运行示例:IDEONE
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句