I have an array. Say example
array('x'=>1);
this is having only one element. This array can change. Key change but only one element will be there. e.g. next time the array can be like --
array('y'=>1);
Now the problem is - I don't know the key name, I need the key name and the value as well.
But as it is having only one element I don't want to run a foreach.
Is it possible ?