"; echo substr_count($str,"is"), ""; echo substr_count($str,"is",2),""; echo substr_count($str,"is",3),""; echo substr_count($str,"is",3,3), "";