Bestimmtes Wort in String zählen

Florian

Angesehenes Mitglied
Hallo,
was einer wie ich ein bestimmtes Wort in einen String zähle?

$string = "wort und noch ein wort und noch ein wort";

Ich möchte also wissen wie oft "wort" in $string vorkommt.

MFG
Florian
 
Zurück
Oben