Remove duplicate values from a String, Number, or Array.



  • Mixed subject - The entity to remove duplicate values from.
    • String - The String will be purged of duplicate characters.
    • Number - The Number will be treated as a String.
    • Array - The Array will be purged of duplicate items. Keys are preserved where possible.


  • Mixed - The modified subject.
    • String - If subject is a String or Number.
    • Array - If subject is an Array.

Returns subject with duplicate elements removed.

ptpscript/functions/unique.txt · Last modified: 2007/01/24 10:15
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki