You mean your html is something like: <th title="somethinghere">?
If so just use the same general structure:
This looks for
th tags that have a title attribute or property.
Only image tags and iframes have a "src" attribute. ( <img
src="path/to/img">, <iframe
src="path/to/file.html"> ) So only if you are trying to get the image's or iframes path would you use "src". If you are trying to get the contents of any other HTML element, use "plaintext".
... can i also ask, why does'nt simple dom let you put stuff into an array?
It does.
For non image elements this works for me:
$myarray[] = $element->plaintext;
I cant understand why I have to dismantle the html page source into something different
Not sure what you mean. If you are looking for a specific element then you need to tell the find() function what it is. You are not dismantling anything, you are specifying what you are looking for in a way that makes sense to the dom parser.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Web & Tech