how to check if a tring is in my cntence php code example
Example 1: if text contains word then in php
if (strpos($haystack,$needle) !== false) {
echo "$haystack contains $needle";
}
Example 2: check if string contains substring php 8
str_contains('STRING', 'SUB_STRING');