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 Peter Fox on 10/20/75 11:55

Following on from IchBin's message. . .
>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?
>
The OP wants a binary string - That's a bit like asking for a cheese
steak.

Looks like the desperate OP should pay more attention in class and not
come here for their coursework. Better still - If that's the limit of
their intellectual engagement with programming they should think of an
alternative career ... such as say a turnip.

>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-)

--
PETER FOX Not the same since the statuette business went bust
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>

 

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

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