You could return an array of [$key, $value] and list it out in the caller.