问题
I have the following string:
[aaaa,bbbb,cccc] [aaaa,bbbb,cccc] [aaaa,bbbb,cccc] [aaaa,bbbb,cccc] [aaaa,bbbb,cccc]
and would like to parse this string into a multidimensional array that would look like
0 > ( 0 > aaaa, 1 > bbbb, 3 > cccc), 1 > ( 0 > aaaa, 1 > bbbb, 3 > cccc), 2 > ( 0 > aaaa, 1 > bbbb, 3 > cccc)
How would I do this?
Many Thanks!
来源:https://stackoverflow.com/questions/13735147/php-parsing-comma-separated-values-between-square-brackets-into-multi-dimension