I have an HTML table that contains 500 e-mail addresses in this file.html.
Now I want to open it with PHP and get all e-mail addresses in it and add it to an array.
This means I have an HTML table and in this table 500 rows with an e-mail address in each row.
How can I get these e-mail addresses with PHP?
I agree with The MYYN’s approach but I suggest you use phps DOM class to iterate through all the td’s of the table and fetch the emails.
Here are some useful functions:
loadHTMLFile
and
getElementsByTagName