<td class="cinetime">
<div>Screen: 3</div>
<br clear="all">
<span>1:00</span>
<span>11:00</span>
<span>13:00</span>
<span>15:00</span>
<br clear="all">
<div>Screen: 4</div>
<br clear="all">
<span>12:05</span>
<span>14:05</span>
<span>16:05</span>
<span>18:05</span>
<span>20:05</span>
<div>Screen: 3 (3D)</div>
</td>
Above is the HTML i'm ing.
I want to take the data in <span>
for screen 3 and Screen 4 separately.
This is my code below but it takes data from all the <span>
s
foreach($cinema->find("td.cinetime span") as $times) {
echo $times->plaintext;
}