-3

How to get div values from another website in PHP? Is there a way?

Mohammad
  • 127
  • 2
  • 16
  • 2
    look at this question, it's related to what you ask. http://stackoverflow.com/questions/20446598/get-div-content-from-external-website (possible duplicate) – tmarois Aug 10 '16 at 14:26

1 Answers1

3

This is really simple its called WEB SCRAPING you can do this using regex regular expression and there is also a library called simple html dom using this you can do what you wanted pretty easily :)

Here is the reference manual Reference

This
$ret = $html->find('div[class=classname]'); can get what you want! or
$ret = $html->find('.div'sclassname')

StackB00m
  • 502
  • 1
  • 5
  • 16
  • 1
    hey @Mohammad if the answer solved your querie please give a green resolved tick on my answer ! happy to help :) – StackB00m Aug 10 '16 at 13:01