public function beginsWith($prefix)
    {
        return $prefix === ''
        || mb_strpos(
            $this->contents,
            (string) $prefix,
            null,
            $this->encoding
        ) === 0;
    }
public function beginsWith($prefix)
    {
        return $prefix === ''
        || mb_strpos(
            $this->contents,
            (string) $prefix,
            null,
            $this->encoding
        ) === 0;
    }
public function beginsWith ( $ prefix ) { return $ prefix === '' || mb_strpos ( $ this -> contents , ( string ) $ prefix , null , $ this -> encoding ) === 0 ; }
Returns true if the string begins with the provided string.

@param string|Rope $prefix

@return bool
Returns true if the string begins with the provided string .