How to find all substrings of a string in PHP

前端 未结 9 991
悲&欢浪女
悲&欢浪女 2020-12-11 06:05

I need to convert strings of the form

\"a b c\"

into arrays of the form

Array
(
    [0] => a
    [1] => a b
    [2] =         


        
9条回答
  •  感情败类
    2020-12-11 06:28

    For even quite short strings, the memory and runtime requirement will explode. Even in native code this is a scary performance problem.

    Justify why you need this function, and work out another way around the problem.

提交回复
热议问题