Hello Everyone,
I want to emulate session objects (as opposed to variables). I stumbled
upon creating multi-dimensional arrays, so I can do this:
$name = 'Bob';
$year = '2003';
$HTTP_SESSION_VARS[$user][$year] = 'registered';
which gives $HTTP_SESSION_VARS['Bob']['2003'] = 'registered';
but I
Hello Everyone,
I want to emulate session objects (as opposed to variables). I stumbled
upon creating multi-dimensional arrays, so I can do this:
$name = 'Bob';
$year = '2003';
$HTTP_SESSION_VARS[$user][$year] = 'registered';
which gives $HTTP_SESSION_VARS['Bob']['2003'] = 'registered';
but I
Hi,
Tuesday, September 9, 2003, 2:19:28 PM, you wrote:
BP Hello Everyone,
BP I want to emulate session objects (as opposed to variables). I stumbled
BP upon creating multi-dimensional arrays, so I can do this:
BP $name = 'Bob';
BP $year = '2003';
BP $HTTP_SESSION_VARS[$user][$year] =
Bobby Patel wrote:
Hello Everyone,
I want to emulate session objects (as opposed to variables). I stumbled
upon creating multi-dimensional arrays, so I can do this:
$name = 'Bob';
$year = '2003';
$HTTP_SESSION_VARS[$user][$year] = 'registered';
which gives $HTTP_SESSION_VARS['Bob']['2003'] =
Brad Pauly wrote:
$HTTP_SESSION_VARS[$user]['options'] = $options;
yes this is what I wanted.
You could then add elements to this array like this:
$HTTP_SESSION_VARS[$user]['options']['registered'] = 1;
Is that what you are trying to do?
- Brad
I will try this out and see what happens.
Thank
5 matches
Mail list logo