I have an array as the following:
function example() { /* some stuff here that pushes items with dynamically created key strings into an array */
key($arr);
will return the key value for the current array element
http://uk.php.net/manual/en/function.key.php