Analisar SERPs

A+
A-
Frase de pesquisa: Titulo 1 : Snippet 1: Titulo 2 : Snippet 2: Titulo 3 : Snippet 3: Titulo 4 : Snippet 4: Titulo 5 : Snippet 5: Titulo 6 : Snippet 6: Titulo 7 : Snippet 7: Titulo 8 : Snippet 8: Titulo 9 : Snippet 9: Titulo 10: Snippet 10:
$value) { $cleanValue = clean($value); //echo "" . $key . ": "; //echo $value . "
" . $cleanValue . "

"; $keyOrigin = substr_replace($key, "", -1); //echo "KeyOrigin = " . $keyOrigin . "
"; $pattern = '/\w+\s+/'; preg_match_all($pattern, $cleanValue, $Words); foreach($Words[0] as $key => $value) if(strlen($value) < 4) unset($Words[0][$key]); $Words = array_unique($Words[0]); if($keyOrigin == "title") $allTitles[$i] = $Words; if($keyOrigin == "phrases") $allSnippets[$i] = $Words; $i++; } foreach($allTitles as $value) { foreach($value as $word) { $titleWords[$word] += 1; } } arsort($titleWords); foreach($allSnippets as $value) { foreach($value as $word) { $snippetWords[$word] += 1; } } arsort($snippetWords); ?>

Numero de titulos com a palavra

$value) { if($value < 2) break; echo $key . ": $value " . "
"; } ?>

Numero de snippets com a palavra

$value) { if($value < 2) break; echo $key . ": $value " . "
"; } ?>
"; print_r($titleWords); print_r($allTitles); print_r($allSnippets); echo ""; exit; echo "
";
print_r($_POST);
echo "
"; ?>