Created
January 1, 2018 15:47
-
-
Save parsibox/406b251ee99b6bdf0a17857f7fc81bd8 to your computer and use it in GitHub Desktop.
show utf8 in DOMDocument
This file contains hidden or 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
$dom = new DOMDocument(); | |
@$dom->loadHTML(mb_convert_encoding( $output_3, 'HTML-ENTITIES', 'UTF-8')); | |
$xpath = new DOMXPath($dom); | |
$table=$xpath->query("//div[contains(@class, 'accordion-inner')]");//accordion-body | |
print_r( $table->length ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment