[KLUG Members] session variables

Adam Tauno Williams awilliam at whitemice.org
Sun Dec 5 23:27:51 EST 2004


> Where the "$_SESSION[variable to be named] ++;" I would like the 
> variable to be named to be one of "$var"s from the previous page.

Perhaps you mean something like -

$x = 5;
$a = "x";
echo $$a;

output is 5.

Double dollar sign dereferences the value of the variable to be a
'pointer' to another variable.



More information about the Members mailing list