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
2. $_SESSION['test']
this is correct. but variables will not be equaled in the string. so when using '' brackets, you cant write $var = 'hello $name!'. even escape chars (\n, etc.) aren't resolved.
3. $_SESSION["test"]
this is best practise for most cases. you can write variables inside the string, which will be substituted by their values and escape chars are resolved
mfg. harry wiens
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php