how to find whether a word is present in the string or not code example Example: check if string contains substring php 8 str_contains('STRING', 'SUB_STRING');