Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
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 y

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Brad Pauly
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'] = 'r

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Tom Rogers
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] = 'reg

[PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
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 w

[PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
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 w