- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- hex2bin: documentation ( source)
<?php
$h = '0032003000310038002d00300031002d00300031';
$s_be = hex2bin($h);
var_dump($s_be);
$s = mb_convert_encoding($s_be, 'UTF-8', 'UTF-16BE');
var_dump($s);