|
Posted by Kimmo Laine on 08/04/06 12:11
<kuukelekuu@gmail.com> wrote in message
news:1154686960.096434.207540@b28g2000cwb.googlegroups.com...
> Thanks all,
>
> I found it thanks to these posts:
>
> $len = strlen('The lenght of the text is 28');
>
> $a = round(($len / 16));
> $b = round(($len - 16) * $a);
>
> echo chr(dechex($b));
That makes no sense to me. But I'm not gonna say anything, if you feel you
got it right and you think it somehow works (does what you want to do) then
it's okay. But it does not, however, convert a hex to an ascii. instead it
converts "something" (I have absolutely no idea what the string length and a
few mathematical operations are supposed to produce) from decimal number to
hex and that to ascii which is totally not what you asked. But perhpas this
is what you want, I dunno...
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net || Gedoon-S @ IRCnet || rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|