parsing items by line and comma php -
I have a text on the page that will type items by user lines and commas. For example, there are 2 items per line
Data 1, Data 1 Info Data 2, Data2 Info Data 3, Data 3 Info
< / P>
thnx
$ x = 'data1, data 1 input data 2, Data 2 Info Data 3, Data 3 Info '; Foreign (explosion ("\ n", $ x) as $ line) {$ item = explosion (",", $ line); // resonant $ item [0]. $ Item [1]; }
Comments
Post a Comment