Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このような文字列を持つ:
5, "hi all, this is a comma", 'text without comma', 5,'a',',',","
文字列を配列に分割したいのですが、まだコンマを含む値があります (一重引用符または二重引用符で囲みます)
可能な最速の正規表現は何ですか (爆発はここでは機能しません)
私は使用できますstr_getcsvが、文字列は一重引用符で囲まれている場合もあれば、二重引用符で囲まれている場合もあります。もっとスマートなものが必要
str_getcsv