get("https://thiladhun.com/feed")["channel"]["item"]; $articlesitems = []; //Looping through the articles and scraping and while scraping it creates a new instance of the scraper. foreach ($articles as $article) { $link = $article['link']; $date = $article['pubDate']; $guid = $article['guid']; $articlesitems[] = (new ThiladhunScraper)->extract($link, $date, $guid); } return $articlesitems; } }