A string can be checked with the below function:
function either_String_existor_not($str, $character) {
if (strpos($str, $character) !== false) {
return true;
}
return false;
}
function either_String_existor_not($str, $character) {
return strpos($str, $character) !== false;
}