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 Link to comment https://forums.phpfreaks.com/topic/79253-accessing-a-passed-variables-previous-name/ Share on other sites More sharing options...
voidstate Posted November 29, 2007 Author Share Posted November 29, 2007 Anyone? Is this just not possible? Link to comment https://forums.phpfreaks.com/topic/79253-accessing-a-passed-variables-previous-name/#findComment-401892 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.