Decimal To ASCII
This algorithm converts decimal numbers to ASCII code.
function DecimalToASCII($dec)
{
$ascii = "";
$decLen = strLen($dec);
for ($i = 0; $i < $decLen; $i += 3)
{
$ascii .= chr(intval(substr($dec, $i, 3)));
}
return $ascii;
}
Example
$data = "080114111103114097109109105110103032065108103111114105116104109115";
$value = DecimalToASCII($data);
Output
Programming Algorithms