Advertisement
Guest User

Untitled

a guest
Oct 19th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $url = 'https://somedomain.com/somesite/';
  2. $content = file_get_contents($url);
  3. $first_step = explode( '<div id="thediv">' , $content );
  4. $second_step = explode("</div>" , $first_step[1] );
  5.  
  6. echo $second_step[0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement