find('div[class="ag ah ai aj bs bt dx ea fo gx ie if ih ii ij ik s"]') as $article) { $item = array(); $item['uri'] = self::URI . $article->find('h2 a', 0)->href; $item['title'] = $article->find('h2 a', 0)->plaintext; $fullArticle = getSimpleHTMLDOM($item['uri']) or returnServerError('Error while downloading the full article'); $dateElement = $fullArticle->find('time', 0); $item['timestamp'] = strtotime($dateElement->plaintext); $item['content'] = $fullArticle->find('div[class="af ag ah ai an"]', 1)->innertext; $this->items[] = $item; } } }