src/Client/KeenIOClient.php
protected function unpadString($string)
    {
        $len = strlen($string);
        $pad = ord($string[$len - 1]);

        return substr($string, 0, $len - $pad);
    }
protected function unpadString($string)
    {
        $len = strlen($string);
        $pad = ord($string[$len - 1]);

        return substr($string, 0, $len - $pad);
    }
protected function unpadString ( $ string ) { $ len = strlen ( $ string ) ; $ pad = ord ( $ string [ $ len - 1 ] ) ; return substr ( $ string , 0 , $ len - $ pad ) ; }
Remove padding for a PKCS7-padded string

@param  string $string
@return string
Remove padding for a PKCS7 - padded string