How to check if a string contains a specific word in php

This tutorial explains about to check whether a string contains a specific word or not. The strpos() function returns the position of the first occurrence of a substring in a string.

Below example shows the way to check if a string contains a specific word in php

Happy coding…

Add a Comment

Your email address will not be published. Required fields are marked *