[snip]
Of course getting an indexed value into an associative array seems a bit

odd to me... maybe Jonas could shed some light on why he would go this 
route...
[/snip]

Exactly....

[snip]
To get a value from position 2 in an array you use $arrayName[1] (all 
array elements start numbering at 0, unless you do something to the 
array to change it).
[/snip]

I was being too subtle.

Anyhow, he has done something to change the array keys. He would have to
know that 'black' is the key in position 2. I suspect that he may be
overcomplicating code, as many new to programming have a tendency to do
(not a hit, just a fact).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to