} $timeWikipedia2 = microtime(true); $webWords = ""; $values = $dictionaryWeb->get_count_values(); foreach ($values as $value=>$number){ $webWords.=$number.": ".$value."<br>"; } $smarty->assign("webWords", $webWords, true); $timeFBSearch = microtime(true); $fbcontent = Context::getFbResult($_POST['text']); $fbWords = ""; foreach ($fbcontent as $item) { $words = $sWords->removeStopWords($item, 3); $fbDictionary->add($words); } $timeFBSearch2 = microtime(true); $values = $fbDictionary->get_count_values(); foreach ($values as $item=>$count){ $fbWords.=$count.": ".$item."<br>"; } $smarty->assign("fbWords", $fbWords, true);