How to get div values from another website in PHP? Is there a way?
Asked
Active
Viewed 115 times
1 Answers
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
-
1hey @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