How To Check If A String Contains A Specific Word In PHP

How can I check if a string contains a specific word. e.g
I would like know the following string – “String word in php” contains a word “php”

You can use php function -> strpos

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments