Hello,
hope this hasnt already been answered a dozend times, but i couldnt find anything relating to this subject.
i'm developing an application using alot of (multidimensional) arrays. the app worked just fine when i used register_globals, but after switching that off for several reasons i have the following problem:
i register an array into a session and am able to read out the array values when directly accessing them but array-functions like count etc dont seem to work.
example:
i have $an_array registered into the session.
an_array[$a_counter][a_value] = 15;
an_array[$a_counter][a_value2] = 50;
on the following page this works just fine, outputting 15:
echo $HTTP_SESSION_VARS["an_array[$a_counter][a_value]"];
but if i try lets say:
print count($HTTP_SESSION_VARS["an_array[$a_counter]"]);
it gives me 0 - not 2 as i had expected.
is there a way to handle the HTTP_SESSION_VARS element as an array itself?
thank you alot,
Hinnerk :-)
oh if it helps:
i'm using php 4.0.5
(track_vars on, register_globals off)