Re: problem with constants

From: Date: Fri, 24 Aug 2001 13:32:45 +0000
Subject: Re: problem with constants
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64239@lists.php.net to get a copy of this message
Wolfgang Schneider wrote: > > ... > > Anyone have an idea what may be causing these warnings? It is only > with code such as " $variable[value]" that these messages show up ... > and then the code is processed anyways and the page displayed. > Thank you for any input and help to solve this problem ... > Use $variable['value'] or $variable["value"]. Because, if you use $variable[value], then PHP thinks that 'value' is some constant, not string. This is why these warnings occurs. -- Pavel a.k.a. Papi

« previous php.general (#64239) next »