[GastForen

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Forenindex -- Lesezeichen

1 Lesezeichen für keyword

Keyword zählen
probier mal das:

Code
$text = "der Marketing und die Marketing und das Marketing"; 

$anzahl = Array();

foreach(preg_split('/\W+/', $text) as $wort){
@ $anzahl[$wort]++;
}

print_r($anzahl);


oder so:

Code
$text = "der Marketing und die Marketing und das Marketing";  

$anzahl = array_count_values( str_word_count( $text, 1) );

print_r($anzahl);

...
oesi50
18. Jan 2009, 12:53