php-simple-html-dom-parser
php-simple-html-dom-parser copied to clipboard
getAttribute error while the attribute name include '-'
getAttribute error while the attribute name include '-'
Is there anybody meet this problem before? like this : $element->data-lazyload;
Could you try $element->{'data-lazyload'}
?