PHP拆分替代? [英] PHP split alternative?
本文介绍了PHP拆分替代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
PHP告诉我不赞成使用split,我应该使用哪种替代方法?
PHP is telling me that split is deprecated, what's the alternative method I should use?
推荐答案
explode
是替代方法.但是,如果您打算通过 正则表达式 进行拆分,则可以选择
explode
is an alternative. However, if you meant to split through a regular expression, the alternative is preg_split
instead.
这篇关于PHP拆分替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文