|
Posted by gosha bine on 06/16/07 08:25
Jon Slaughter wrote:
> "ZeldorBlat" <zeldorblat@gmail.com> wrote in message
> news:1181962140.635446.239690@c77g2000hse.googlegroups.com...
>> On Jun 15, 10:05 pm, "Jon Slaughter" <Jon_Slaugh...@Hotmail.com>
>> wrote:
>>> Is there any php functions to encode a decimal number(integer in this
>>> case)
>>> into a binary string? Not convert it to a string but encode it. So 255 =
>>> chr(255) and 256 = chr(1).chr(0) and not 255 = '255'.
>>>
>>> Thanks,
>>> Jon
>> You mean like this:
>>
>> http://www.php.net/base_convert
>>
>
> No, I mean converting an int to its internal representation instead of its
> string representation.
>
see pack()
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|