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