public function decode($data)
    {
        $data = \preg_replace('/[^0-9A-Fa-f]/', '', \rtrim($data, '>'));
        if ((\strlen($data) % 2) === 1) {
            $data .= '0';
        }

        return \pack('H*', $data);
    }
public function decode($data)
    {
        $data = \preg_replace('/[^0-9A-Fa-f]/', '', \rtrim($data, '>'));
        if ((\strlen($data) % 2) === 1) {
            $data .= '0';
        }

        return \pack('H*', $data);
    }
public function decode ( $ data ) { $ data = \ preg_replace ( '/[^0-9A-Fa-f]/' , '' , \ rtrim ( $ data , '>' ) ) ; if ( ( \ strlen ( $ data ) % 2 ) === 1 ) { $ data .= '0' ; } return \ pack ( 'H*' , $ data ) ; }
Converts an ASCII hexadecimal encoded string into its binary representation.

@param string $data The input string
@return string
Converts an ASCII hexadecimal encoded string into its binary representation .