Greetings,
To start, lets say you have a script that returns a variable which contains a random string that is never
the same length and never contains the same information. It could look something like this:
$results = <td class="name1">some data1</td><td class="name1">more data</td><td class="name1">12345</td><td class="name1">4/9/2006</td><td class="name1">You get the picture</td>
My question is this:
How do I retrieve only what is between the <td></td> tags?
For example:
<td class="name1">some data1</td>
$a = some data1
I only want the information that is between the <td></td> tags, nothing else.
I would probably want to place each piece of data between the <td></td> tags into an array
so that I could later take each key => value and write value to a database, into it's proper column.
Many thanks in advance,
Nick