i have this html code. Im using Simple HTML Dom to parse the data into my own php script.
<table>
<tr>
<td class="header">Name</td>
<td class="header">City</td>
</tr>
<tr>
<td class="text">Greg House</td>
<td class="text">Century City</td>
</tr>
<tr>
<td class="text">Dexter Morgan</td>
<td class="text">Miami</td>
</tr>
</table>
I need to get the text inside the TDs in an array, example:
$array[0] = array('Greg House','Century City');
$array[1] = array('Dexter Morgan','Miami');
I've tried several ways to get that but i've fail in each and everyone of them. Can someone give me a hand?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…