Re: Re: correct syntax

From: Date: Wed, 25 Jun 2003 11:02:15 +0000
Subject: Re: Re: correct syntax
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-152738@lists.php.net to get a copy of this message
At 10:08 25-6-03, you wrote:
Harry Wiens wrote:
What would be the correct syntax? 1. $_SESSION[test]
in this case "test" is a constant and must be defined by calling define("test", some_integer_value) before
But PHP is extremely tolerant and if it cannot find a defined constant called test, or if the array is between double quotes, PHP will read thsi as if it is $_SESSION['test'];
example: echo " bla    $_SESSION[test]   bla ";


« previous php.general (#152738) next »