Created
December 11, 2016 13:22
-
-
Save aansubarkah/8d4740565fd5919d2030f287c2b40fae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html = new Document('<html><body><div id="foo">Ipsum</div></body></html>'); | |
$ret = $html->find('div[id=foo]'); | |
echo $ret->plaintext;//will output 'Ipsum' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment