How do I stop extracting items from a <table>
using php??
The situation is as follows:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"url_onde_pego_os_dados");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec ($ch);
In case $ result is a <table>
with the items I want to extract.
example
<tr class="primeiroregistro">
<td align="left">ABC</td>
<td align="left">Atol ABC </td>
<td align="left">Plastico</td>
<td align="right">13,45</td>
<td align="right">13,01</td>
<td align="right">13,65</td>
<td align="right">13,27</td>
<td align="right">13,28</td>
<td align="right">-1,26%</td>
<td align="right">13,25</td>
<td align="right">13,28</td>
<td align="right">1.368</td>
<td align="right">506.500</td>
</tr>