You are here: Re: arrays -- can they be words, not bytes? « PHP Programming Language « IT news, forums, messages
Re: arrays -- can they be words, not bytes?

Posted by Jerry Stuckle on 10/17/07 20:13

Good Man wrote:
> "Bint" <bint@csgs.com> wrote in news:13hco71gbsmmb66@corp.supernews.com:
>
>> I have an array whose elements I'm accessing, like array[0], array[1],
>> etc. However, the data is meant to be 16-bit words, not bytes. I'm
>> getting byte values right now. Is there
>> any way I can tell php that an array is composed of words and not
>> bytes?
>
> Hmm, I think you're a bit confused, or at least I am.
>
> Put whatever you want in the array:
>
> $storeAddress['Kamloops'] = "128 Harry Street";
> $storeAddress['Toronto'] = "2555 Yonge Street";
>
> And what is a 16-bit word?
>

Assembler term - two 8-bit bytes handled as one 16 bit word. And 4
bytes can be handled as a 32 bit DWORD.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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