$a = \'how are you\'; if (strpos($a,\'are\') !== false) { echo \'true\'; }
In PHP, we can use the code above to check if a string contain speci
var str1 = "STACKOVERFLOW"; var str2 = "OVER"; if(str1.indexOf(str2) != -1){ console.log(str2 + " found"); }