======unique====== Remove duplicate values from a [[PTPScript:Types:String|String]], [[PTPScript:Types:Number|Number]], or [[PTPScript:Types:Array|Array]]. \\ **Syntax** * ''[[PTPScript:Types:Mixed|Mixed]] unique( [[PTPScript:Types:Mixed|Mixed]] subject )'' \\ **Parameters** * [[PTPScript:Types:Mixed|Mixed]] ''subject'' - The entity to remove duplicate values from. * [[PTPScript:Types:String|String]] - The String will be purged of duplicate characters. * [[PTPScript:Types:Number|Number]] - The Number will be treated as a String. * [[PTPScript:Types:Array|Array]] - The Array will be purged of duplicate items. Keys are preserved where possible. \\ **Result** * [[PTPScript:Types:Mixed|Mixed]] - The modified ''subject''. * [[PTPScript:Types:String|String]] - If ''subject'' is a String or Number. * [[PTPScript:Types:Array|Array]] - If ''subject'' is an Array. Returns ''subject'' with duplicate elements removed.