daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Nov 9th, 2018 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $url = 'https://en.wiktionary.org/wiki/noob';
  4. $markup = file_get_contents($url);
  5.  
  6. $doc = new DOMDocument();
  7. $doc->loadHTML($markup);
  8.  
  9. $firstHeading = $doc->getElementById('firstHeading');
  10.  
  11. var_dump($firstHeading->nodeValue);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top