I'm trying to use strpos to find a string inside another string, but for some reason it isn't working for a certain string, even though it's working for the other one. What am I doing wrong?
<?php
if (strpos("show me how to dance", "show me")) {
echo "true1";
}
if (strpos("my name is name", "name")) {
echo "true2";
}
?>
Result:
true2
Expected Result:
true1true2