- print_r: documentation ( source)
- ord: documentation ( source)
- rand: documentation ( source)
<?php
function encode_char($c)
{
$sum = ord($c);
$first = rand(-100,100);
$second = rand(-100,100);
$third = $sum - ($first + $second);
return [$first, $second, $third];
}
print_r(encode_char('a'));
?>