An explode() function that ignores characters inside quotes?

后端 未结 3 2053
挽巷
挽巷 2020-12-11 04:14

Does somebody know a quick and easy explode() like function that can ignore splitter characters that are enclosed in a pair of arbitrary characters (e.g. quotes

3条回答
  •  情深已故
    2020-12-11 04:40

    Something very near with preg_split : http://fr2.php.net/manual/en/function.preg-split.php#92632

    It handles multiple wrapper characters AND multiple delimiter characters.

提交回复
热议问题