Re: PHP Bug ?

From: Date: Sat, 03 Jul 2004 09:56:52 +0000
Subject: Re: PHP Bug ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-189619@lists.php.net to get a copy of this message
On Fri, 2 Jul 2004 11:08:38 +0200 "Pierre" <pierre@web-lance.com> 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 <cat@final-frontier.ath.cx> GnuPG key: 2DE8 CCEF 6E20 11D4 3B27 21EC B0BA 1749 D2C8 38ED Available at: http://www.final-frontier.ath.cx/?key-plain

Attachment: [application/pgp-signature]
« previous php.general (#189619) next »