i have a string in $str variable.
how can i verify is it starts with some word?
example
$str = "http://somesite.com/somefolder/somefile.php";
when i wrote the following script
if(strpos($str, "http://") == '0') echo "yes"; //returns yes
BUT it returns yes even when i wrote
if(strpos($str, "other word here") == '0') echo "yes"; //returns yes too
i think it strpos returns zero if it can't find substring too(or empty value).
so, what can i do, if i want to verify the word, which in the start of string?(maybe i must use === in this case?)
Thanks