Re: [PHP] Passing array names into a function

2001-09-05 Thread Brian Clark
Hi Geoff, @ 3:30:24 PM on 9/5/01, Geoff Caplan wrote: I think I am being dumb but I just can't figure out a way to do this: I have a static array inside a function, and I want caller to be able to set/get values in the array. Something like this: ?php data_store( set,

Re: [PHP] Passing array names into a function

2001-09-05 Thread Geoff Caplan
Brian Thanks for the response, but unless I am misunderstanding, I don't think this is what I am after. Just to restate, I want to set up a module as a static data cache. The main function $my_cache will have a static array $data. There will be a set of helper functions to set values into

[PHP] Passing array names into a function

2001-09-05 Thread Geoff Caplan
Hi folks I think I am being dumb but I just can't figure out a way to do this: I have a static array inside a function, and I want caller to be able to set/get values in the array. Something like this: ?php data_store( set, my_array['key1']['key2'], my new value) function data_store(