======invert====== Inverts the items of an [[PTPScript:Types:Array|Array]]. \\ **Syntax** * ''[[PTPScript:Types:Array|Array]] invert( [[PTPScript:Types:Array|Array]] subject )'' \\ **Parameters** * [[PTPScript:Types:Array|Array]] ''subject'' - The Array to invert. \\ **Result** * [[PTPScript:Types:Array|Array]] - An Array containing all the item values of ''subject'' as item keys, and the corresponding keys as values. Duplicate values will replace one another. Only item values that are valid keys will be inverted. Returns ''subject'' with item keys and values exchanged.