how to know if a letter is in a string in php code example Example: check if string contains substring php 8 str_contains('STRING', 'SUB_STRING');