The element_name() and nelement_name() functions return the name of an element if it exists.
varchar = element_name(array input, int index);
nvarchar = nelement_name(array input, int index);
The input value specifies the array which contains the named element.
The index value specifies the element for which to retrieve the name.
select element_name(add_element(array(4),4,'Netezza'),1);
element_name
--------------
Netezza
(1 row)