Today's hard learned lesson with parsing #html in #php :
When you query xpath (DOMDocument, DOMXpath) by class you need exact same class value with all the classes as in html. I mean it's kind of obvious but also unintuitive.
@len Try the new HTML 5 friendly parser in PHP 8.5. I'm not sure if it has special class handling, but it's what you should be using for parsing HTML these days.

@Crell Thank you, for reply. I watched your talk yesterday on #phpverse It was great!

You probably mean https://www.php.net/manual/en/class.dom-htmldocument.php and Dom/Xpath. I had the same problem there, and I switched back to 8.3 before finding out my error. I'll write some comments to php.net to let others, with same presumptions as me, know.

PHP: Dom\HTMLDocument - Manual

The Dom\HTMLDocument class

@len If the docs could be improved, please file a PR, not a comment. Or at least a github issue. Comments are vestigial.