mfcdb_comp3decode

This function decode data given in COMP-3 format


Prototype:

string mfcdb_comp3decode ( string $comp3_data, int $comp3_data_len )




The function decodes $comp3_data with $comp3_data_len in text human readable format.

RETURN: This function returns string with decoded text.

Example

<?php
 
$data = "\x02\x00\x80\x82\x2F"; // 5 bytes len
$decodedText = mfcdb_comp3decode($data, 5);
 
echo "Encoded data : ".bin2hex($data)." - Decoded text: ".$decodedText."\n";
 
?>
documentation/mfcdb_comp3decode.txt · Ultima modifica: 2008/08/22 23:12 da gchiesa