phpmady Posted November 1, 2012 Share Posted November 1, 2012 I need to write a curl functionality, where the datas are stored in the table format. I need to write a function to read all the <tr> and its <td> <td> contains text and link like the below. could anyone help me how to read a text along with the link. for example: <table> <tr> <td> <div> <a href="link.html">td data </a><div></</td> <td> <div> <a href="link.html">td data </a><div></</td> </tr> <tr> <td> <div> <a href="link.html">td data </a><div></</td> <td> <div> <a href="link.html">td data </a><div></</td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/270159-reading-a-page-using-curl/ Share on other sites More sharing options...
ManiacDan Posted November 1, 2012 Share Posted November 1, 2012 Regular expressions or the DOMDocument will do this for you. Quote Link to comment https://forums.phpfreaks.com/topic/270159-reading-a-page-using-curl/#findComment-1389290 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.