Reply to Re: dec to string

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация