E
E
EVOSandru62015-08-14 03:42:36
Parsing
EVOSandru6, 2015-08-14 03:42:36

How to parse the style attribute of an element using simple_html_dom?

Tried like this:
echo $element->getAttribute('style');
And like this:
echo $element->style;
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-08-17
@EVOSandru6

Have you looked at the source code of the page?
I think not, because then you would see that elements with a selector do not have a style#tablo .digit attribute .

tyts
71239106eff549939eeac09cb23b54de.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question