PHP Source:
<
!DOCTYPE
html
>
<
html
>
<
body
>
<?php
$str =
"abcabcab"
;
echo
substr_count($str,
"abcab"
);
// This function does not count overlapped substrings, and will therefore only print 1
?>
<
/body
>
<
/html
>
Result:
Privacy Policy