substr_count Count the number of substring occurrences Description intsubstr_count stringhaystack stringneedle substr_count returns the number of times the needle substring occurs in the haystack string. <function>substr_count</function> example