Vinzenz Mai: substr_count()

Beitrag lesen

Hallo

$string = "Ich möchte wissen wie oft ich das wort ich diesem string habe";

$check = "ich";

#funktion?

return = 3

hast Du Dir schon einmal substr_count() angeschaut?

Frage: Was sollte bei

  
$string = 'Wichtig: Ich möchte wissen wie oft ich das wort ich diesem string habe';  
$check = 'ich';  

als Ergebnis herauskommen?

Freundliche Grüße

Vinzenz