find('.latestSoundtrackHeading'); $tables = $html->find('.albumList'); // $dates is empty foreach ($dates as $i => $date) { $item = []; $item['uri'] = self::URI; $item['timestamp'] = DateTime::createFromFormat('F jS, Y', $date->plaintext)->setTime(1, 1)->format('U'); $item['title'] = sprintf('OST for %s', $date->plaintext); $item['author'] = 'Khinsider'; $trs = $tables[$i]->find('tr'); $content = '