Is it possible to use a field name as the key of an array?
In other words, I don't want to use this type of result:
$resultarray[0];
Instead, I wante to use the field name like so:
$resultarray['UserName'];
(Assuming the returned index of 0 is the field name called UserName)
I have been looking at the various array functions in the offline manual, and have a lot of good examples, but none of the examples really discuss using variables in arrays. I am pretty sure it can be done, but not exactly sure how to go about defining the key with the array index.