Jump to content

Extracting some data from an html table


RobertP

Recommended Posts

<table>
        <tr class="even_tr">
            <td>
                
                    2012-06-15
                
            </td>
            <td>git.gludoe.com</td>
            <td>963.00KB</td>
            
        </tr>
</table>

 

preg_match_all("/\<td\>(.*)\<\/td\>/",strip_tags($data,'<td>'),$matches);

 

i remove all the html tags except td because some td's have <b> in them.

Link to comment
https://forums.phpfreaks.com/topic/264255-extracting-some-data-from-an-html-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.