slice和split那个效率高?
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.
split() 方法用于把一个字符串分割成字符串数组。
slice() 方法可从已有的数组中返回选定的元素。
两者表示的意义都不一样,怎么说效率谁高谁低呢?
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.
split() 方法用于把一个字符串分割成字符串数组。
slice() 方法可从已有的数组中返回选定的元素。
两者表示的意义都不一样,怎么说效率谁高谁低呢?