protected function _processString($str, $opts)
    {
        if (!empty($opts['length'])) {
            return substr($str, empty($opts['start']) ? 0 : $opts['start'], $opts['length']);
        } elseif (!empty($opts['start'])) {
            return substr($str, $opts['start']);
        }

        return $str;
    }
protected function _processString($str, $opts)
    {
        if (!empty($opts['length'])) {
            return substr($str, empty($opts['start']) ? 0 : $opts['start'], $opts['length']);
        } elseif (!empty($opts['start'])) {
            return substr($str, $opts['start']);
        }

        return $str;
    }
protected function _processString ( $ str , $ opts ) { if ( ! empty ( $ opts [ 'length' ] ) ) { return substr ( $ str , empty ( $ opts [ 'start' ] ) ? 0 : $ opts [ 'start' ] , $ opts [ 'length' ] ) ; } elseif ( ! empty ( $ opts [ 'start' ] ) ) { return substr ( $ str , $ opts [ 'start' ] ) ; } return $ str ; }
Process a string response based on criteria options.

@param string $str  The original string.
@param array $opts  The criteria options.

@return string  The requested string.
Process a string response based on criteria options .