get(); $articlesitems = []; //Looping through the articles and scraping and while scraping it creates a new instance of the scraper. foreach ($articles as $article) { $articlesitems[] = (new VoiceScraper)->extract("https://voice.mv/".$article[1]); } return $articlesitems; } }