public static function startsWith($haystack, $needle) {
		if($needle === null && $haystack === null)
			return false;
		if($needle === null && $haystack !== null)
			return true;
		return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
	}
public static function startsWith($haystack, $needle) {
		if($needle === null && $haystack === null)
			return false;
		if($needle === null && $haystack !== null)
			return true;
		return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
	}
public static function startsWith ( $ haystack , $ needle ) { if ( $ needle === null && $ haystack === null ) return false ; if ( $ needle === null && $ haystack !== null ) return true ; return $ needle === "" || strrpos ( $ haystack , $ needle , - strlen ( $ haystack ) ) !== false ; }
Checks if the haystack starts with needle

@param string $haystack
@param string $needle
@return boolean
Checks if the haystack starts with needle