explode on empty string returns an array of length 1

后端 未结 0 716
星月不相逢
星月不相逢 2020-12-01 08:10

Is there a split function in PHP that works similar to the JavaScript split()? For some reason explode() returns an array of length 1 when an empty string is given.

E

相关标签:
回答
  • 消灭零回复
提交回复
热议问题