More accurately:
$string = "testing - in string";
if (strpos($string,"-") !== false)
{
echo "- found";
}
else
{
echo "- not found";
}
The reason is that if the dash is the first character in the string, strpos() will return 0, which will evaluate to false.