What is the correct way to write the statement if ($a contains 'are') for below code ??
$a = 'How are you?';
if ($a contains 'are')
echo 'true';
<!DOCTYPE html>
<html>
<body>
<?php
$a = 'How are you?';
$word='are';
if(strpos($a, $word) !== false){
echo "Word Found!";
} else{
echo "Word Not Found!";
}
?>
</body>
</html>