Delimiter must not be alphanumeric or backslash错误的解决办法

php程序中之前一直使用split()函数,因新版本的php已经不支持split(),所以直接将split()更换为了preg_split(),运行时报:

Delimiter must not be alphanumeric or backslash文章源自堕落的鱼-https://www.duoluodeyu.com/2543.html

这是因为正则表达式没有加左右侧的斜线,你可以在正则表达式前后加 / ,尝试能否解决以上问题。文章源自堕落的鱼-https://www.duoluodeyu.com/2543.html 文章源自堕落的鱼-https://www.duoluodeyu.com/2543.html

 最后更新:2019-6-16
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证