- chr: documentation ( source)
- str_rot13: documentation ( source)
- strrev: documentation ( source)
- ord: documentation ( source)
<?php
function fn_simple_decode_str($str)
{
$decoded_str = '';
for ($i = 0; $i < fn_strlen($str); $i++) {
$chr = ord($str[$i]);
$decoded_str .= chr(--$chr);
}
return $decoded_str;
}
echo strrev(str_rot13('cuc.xfrqcyrU/utlG/ccn')), PHP_EOL;
echo strrev(str_rot13('cuc.8sgh/ergeriabp_ynergvy/fnzrupf/ccn')), PHP_EOL;
echo fn_simple_decode_str('npef`sfdifdl'), PHP_EOL;