An explode() function that ignores characters inside quotes?

后端 未结 3 2046
挽巷
挽巷 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:29

    str_getcsv($str, '/')

    There's a recipe for <5.3 on the linked page.

提交回复
热议问题