trying to session register a dynamically created array
I am using dynamically created array names in a script by naming them in a loop with the following syntax ${"month_totals_array_$pc"} What this is doing is starting off with each of these array names being "month_totals_array_" and then adding an extension ($pc) to each of them based on values from another array of product classes that I have at the start of the loop. That part works fine for me and everything is good until I try to session_register each of the dynamically created arrays. I have tried syntax like session_register(${"month_totals_array_$pc"}) and session_register('${"month_totals_array_$pc"}') and even though an error is not brought it appears that the arrays are not added to the session, because I can't retrieve them using $_SESSON['${"month_totals_array_$pc"}']. I just need to know how to session_register a dynamically named array like those I mentioned above. I have been looking for information about this for days now and there isn't much out on the web. Thanks.
__________________
Cullan crothers
|