php - Parse text from an HTML page -
I know that it is possible to get information (text) from any other page.
For example, there is a div
named news
on the page. How do I get text from this div?
Yes, this is what is for other options. / P>
Example:
$ html = file_get_html ('http://www.page.com/'); $ Mydiv = $ html- & gt; Search ('div [id = news]', 0) - gt; Plain text;
Comments
Post a Comment