Posted by Chung Leong on 11/03/05 00:26
MBS wrote:
> Greetings. I'm still pretty new to PHP and I have a question. I know that
> variables are preceeded by a "$" (dollar sign). Typically, a variable has
> one value, unless it is an array. Then it is essentially a pointer to
> numerous values sequential in memory. The code I'm looking at now is using
> the same variable name, but assigning a different "index" to it, if you
> will.
>
> For example, I see the following:
>
> $settings['use_default_images']
> $settings['doctype']
> $settings['theme_url']
>
> And many more.
>
> What is this feature called in PHP? I looked at the reference on php.net
> and it isn't anywhere to be found under arrays.
Arrays with string indices are called associative arrays or hash
tables. The term in VB-speak I believe is dictionary.
[Back to original message]
|