Source Code:
(back to article)
<?php $string = "This is a test string."; $substring = "is"; $count = substr_count($string, $substring); echo $count;
Result:
Report an issue