On Fri, 2 Jul 2004 11:08:38 +0200 "Pierre" <[EMAIL PROTECTED]> wrote:
> Just try this : $temp = $country_list[$country_symbol]['AU'] ; > Seems better :) Yes, but wrong. The original: > $temp = $country_list[$country_symbol['AU']] ; 2 levels of arrays. 2 _different_ arrays. $country_symbol = array( 'AU' => 'some_value' ); $country_list = array( 'some_value', 'some_other_value' ); For your piece of code it would need to be: $country_list = array( 'some_value' => array( 'AU', 'some_other_value' ); BTW: $array[$second_array['key']] works fine for me... php 5.0.0rc3 -- Dennis Freise <[EMAIL PROTECTED]> GnuPG key: 2DE8 CCEF 6E20 11D4 3B27 21EC B0BA 1749 D2C8 38ED Available at: http://www.final-frontier.ath.cx/?key-plain
pgprF0IuKDKzk.pgp
Description: PGP signature