数据分析师2017-09-30 23:28:26
Which one is more efficient, slice or split? -PHP Chinese website Q&A-Which one is more efficient, slice or split? -PHP Chinese website Q&A
Please watch and learn.
阿神2016-12-21 16:37:01
split() 方法用于把一个字符串分割成字符串数组。
slice() 方法可从已有的数组中返回选定的元素。
两者表示的意义都不一样,怎么说效率谁高谁低呢?