RE: Echo a value from an arrays position

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux