Can I use an instance variable as the key for an associative array?

risurtalay

New Member
The array is an instance variable of the same object. I want to keep track about what instance variable has changed it's value, so it seems to be a simple solution to pass the instance variable itself as an key to an associative array. Is this perfectly fine with PHP or does this have some bad side effects?
 
Back
Top