"how can i get a div content in php" Answer’s


Use the php DomDocument class. http://www.php.net/manual/en/class.domdocument.php

$dom = new DOMDocument();


$xpath = new DOMXPath($dom);
$divContent = $xpath->query('//div[id="product_list"]');
Wednesday, March 31, 2021
answered 11 Months ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :