I need to find all tables with width=230
width=230
So far I have:
foreach($qp->top('table')->get() as $table) { $width = $table->attr('width'); }
But I get a "Call to undefined method DOMElement::attr()" error.
"Call to undefined method DOMElement::attr()"
It seems, $table is a DOMElement, so probably you can do
$width = $table->getAttribute('width);
Try something like
$table->find('[width="230"]');
Copyright © 2021 Jogjafile Inc.
It seems, $table is a DOMElement, so probably you can do