I really don't understand a thing about regular expressions, and I would like to write a function that uses alot of them...
What I want to do is this:
I have a HTML table loaded into a var. and I would like to transform that into an array.
So there's a page with let's say 5 rows en 10 cols, and every content of every cell should be 1 part of the array.
To complicate things even more, it would be handy if it would work with subarrays, every row makes a part of the 'head'array, and that part is again a subarray that contains the content of every cell...
I don't want someone to write the function for me, it would spoil all the fun.
But just what php function should I use to get the content of every <td>(.*)</td> in a string?
(so if there's <td>a</td><td>b</td><td>c</td> the result should be Array('a', 'b', 'c') )
Thanx