Re: PHP Bug ?

From: Date: Sat, 03 Jul 2004 14:58:30 +0000
Subject: Re: PHP Bug ?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-189629@lists.php.net to get a copy of this message
Siddharth Hegde wrote:
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.
That's because KEY_NAME is a constant and 'KEY_NAME' is a string. So unless you really have a constant called KEY_NAME, that's what's causing the trouble. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#189629) next »