|
Posted by Siv Hansen on 11/02/05 09:00
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.
This is an array which uses a string as index instead of an int. This is
called associative arrays
>
> Thank you
Navigation:
[Reply to this message]
|