I understand '===0' means is exactly the same but i don't understand the return statement with that on the end. I saw this code snippet at http://www.jonasjohn.de/snippets/php/starts-with.htm and its dated back in 2007 so maybe its just old and not UTD with php 5. Maybe there is an implied if statement there saying return this line only if it is exactly equal to 0. Thanks for any help.
[cod]
function StartsWith($Haystack, $Needle){
// Recommended version, using strpos
return strpos($Haystack, $Needle) === 0;
}
[/cod]