You may use the special PHP function substr_count <?php $myText=" the car is red "; echo substr_count($myText,"is"); ?> will display: 2
<< Go back