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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -