Re: PHP Bug ?
| From: | Siddharth Hegde | Date: | Sat, 03 Jul 2004 10:39:58 +0000 |
| Subject: | Re: PHP Bug ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189622@lists.php.net to get a copy of this message | ||
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
<cat@final-frontier.ath.cx> wrote:
> On Sat, 3 Jul 2004 11:56:52 +0200
> Dennis Freise <cat@final-frontier.ath.cx> 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 <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
>
>
>