【发布时间】:2016-03-03 18:50:59
【问题描述】:
对我来说最好的方法是什么?我应该使用正则表达式还是可以使用其他内置的 PHP 函数?
例如,我希望:12 months 变为 12。 Every 6 months 变成 6,1M 变成 1,等等
【问题讨论】:
-
@mickmackusa 为什么不Stripping a phone number of its parenthesis, spaces, and hyphens in PHP? 顺便说一句,我认为这个问题不应该被删除。