- chr: documentation ( source)
- ord: documentation ( source)
<?php
function rpc_str_serialize($val)
{
$len = strlen($val);
if ($len < 255)
{
$rt = chr($len).$val;
return $rt;
}
else
{
$rt =chr(255).rpc_int_serialize($len).$val;
return $rt;
}
}
echo(ord(rpc_str_serialize("momoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjukmomoqwertyuioasdfghjkl;zxcvbnm,.qwertgyhjuk")[0]));
?>