Hi,
Does anybody know the difference between refering a session variable with single vs double quote? For example:
$temp = $SESSION['test']; $temp = $SESSION["test"];
What are their difference?
Thanks for help.
There shouldn't be any, except that PHP will not parse a string that's in single quotes. For instance, if you're dynamically accessing a session variable and $i=1 $SESSION['SessionVar$i']; litterlly look for a session variable name SessionVar$i whereas $SESSION["SessionVar$i"] would look for SessionVar1.
Jim