php how to check if string has characters code example
Example: if text contains word then in php
if (strpos($haystack,$needle) !== false) {
echo "$haystack contains $needle";
}
if (strpos($haystack,$needle) !== false) {
echo "$haystack contains $needle";
}