To search the PHP string contains the word or search term, you can use the strpos() function. Full Tut: https://www.tutorialscollection.com/how-to-find-in-php-string-contains-a-specific-value-strpos-php-function/
You may need to search the strings in PHP whether it contains a specific word or search term and then perform a certain action.
For that use the strpos function of PHP.
See the video tutorial or visit the link for learning with demos.