```
<div class="bk-cell-wrapper">
<div class="bk-timetable-cell">
div class="day-item-hover" data-detail="{**value i want to find**}" >BlaBlaBlabLa</div>
</div>
</div>

```

from this pattern which repeats multipletimes, i want to extract all divs with attribute "data-detail" in it.
I made it with this code :

```
$html = file_get_html($url);
  foreach($html->find('div[data-detail]') as $element )
  echo $element

```

now i want to extract the value in attribute "data-detail" from the variable $element, where i store each div with attr "data-detail" in it

view-source:<https://oa-poruba.bakalari.cz/Timetable/Public/Actual/Class/WV>