Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'https://en.wiktionary.org/wiki/noob';
- $markup = file_get_contents($url);
- $doc = new DOMDocument();
- $doc->loadHTML($markup);
- $firstHeading = $doc->getElementById('firstHeading');
- var_dump($firstHeading->nodeValue);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement