You are here: Re: how do you make a string of binary numbers from an array « PHP Programming Language « IT news, forums, messages
Re: how do you make a string of binary numbers from an array

Posted by IchBin on 08/11/06 21:18

Carl Vondrick wrote:
> Bint wrote:
>> I have an array of numbers, and I need to turn it into a single
>> binary string. How do I do that?
>
> Sorry, but what you are trying to do?
>
> You could do something like this:
>
> $string = array(1,2,3,5,6,7);
> $output = '';
> foreach ($string as $ascii)
> {
> $output .= chr($ascii);
> }

Is that ascii and not binary?

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

 

Navigation:

[Reply to this 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

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