简体   繁体   中英

PHP: Decode PDU messages

Does anyone know a written PHP class to decode PDU messages?

I have found one online for JavaScript at http://rednaxela.net/pdu.php , but it is going to take me time to adapt it to PHP.

Thank you for your time.

function DecodePDU($sString = '')
{
    $sString = pack("H*",$sString);
    $sString = mb_convert_encoding($sString,'UTF-8','UCS-2');

    return $sString;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM