voidstate Posted November 28, 2007 Share Posted November 28, 2007 Hi I want to pass a variable to a function and have that function add it to an array, using the variable's name (before it was passed) without the dollar sign as the key. So... $data = 'someString' would be added to my varArray array as: varArray( 'data' => 'someString' ) while... $moreData = 'anotherString' would change the array to: varArray( 'data' => 'someString' , 'moreData ' => 'anotherString' ) and so on. Is it possible to access the name a cariable had before being passed? Cheers voidstate Quote Link to comment Share on other sites More sharing options...
voidstate Posted November 29, 2007 Author Share Posted November 29, 2007 Anyone? Is this just not possible? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.