I'm new to php. I'm trying out something with if-else in php. In the below test code, the control is always going to else. What am I missing here, please.
<?php
$string = "I like it";
echo "$string\n";
echo strpos($string, 'my');
echo "\n";
if (strpos($string, "not") === true)
{
echo "Sorry, While we work on enhancing the user experience, would you like to suggest something?";
}
else
{
echo "Thank you, would you like to try again";
}
echo "\n";
?>