$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
You're looking for the indexOf function:
if (str.indexOf("are") >= 0){//Do stuff}