function _unpad($text)
    {
        if (!$this->padding) {
            return $text;
        }

        $length = ord($text[strlen($text) - 1]);

        if (!$length || $length > $this->block_size) {
            return false;
        }

        return substr($text, 0, -$length);
    }
function _unpad($text)
    {
        if (!$this->padding) {
            return $text;
        }

        $length = ord($text[strlen($text) - 1]);

        if (!$length || $length > $this->block_size) {
            return false;
        }

        return substr($text, 0, -$length);
    }
function _unpad ( $ text ) { if ( ! $ this -> padding ) { return $ text ; } $ length = ord ( $ text [ strlen ( $ text ) - 1 ] ) ; if ( ! $ length || $ length > $ this -> block_size ) { return false ; } return substr ( $ text , 0 , - $ length ) ; }
Unpads a string.

If padding is enabled and the reported padding length is invalid the encryption key will be assumed to be wrong
and false will be returned.

@see self::_pad()
@param string $text
@access private
@return string
Unpads a string .