find('div[class="bl bm"]'); foreach ($articles as $article) { $item = []; $itemUrl = self::URI . $article->find('a', 1)->href; $item['uri'] = $itemUrl; $item['title'] = $article->find('a', 1)->plaintext; $fullArticle = getSimpleHTMLDOM($item['uri']); $createdAt = $fullArticle->find('time', 0); $item['timestamp'] = strtotime($createdAt->plaintext); $this->items[] = $item; if (count($this->items) >= $limit) { break; } } } public function getIcon() { return 'https://n26.com/favicon.ico'; } }