I am using for parsing text simple html dom, but he cant manage this kind of accessing divs.
foreach($html->find("div") as $div)
{
if($div->data-zoom-image != false)
// some job
}
error log:
Use of undefined constant data - assumed 'data'
Use of undefined constant zoom - assumed 'zoom'
Use of undefined constant image - assumed 'image'
it seems that elements with dash ( - ) needs to be accessed on some other way