While we are on this topic, I have noticed that for only some keys, the following does not work $arr[KEY_NAME] but when I change this to $arr['KEY_NAME'] it works. I seriosuly doubt that KEY_NAME is a restricted keyword as dreamweawer highlights these in different colors and this happens very rarely. In any case I will be working on PHP5 so i guess it will not happen again
On Sat, 3 Jul 2004 12:04:10 +0200, Dennis Freise <[EMAIL PROTECTED]> wrote: > On Sat, 3 Jul 2004 11:56:52 +0200 > Dennis Freise <[EMAIL PROTECTED]> wrote: > > Errr... these need to be assoc as well: > > > > > $country_symbol = array( 'AU' => 'some_value' ); > > $country_list = array( 'some_value', 'some_other_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' ); > > $country_list = array( 'some_value' => array( 'AU' => 'some_other_value' ); > > -- > 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php