Getting Items


Introduced in Version 2.3


Return a new WireArray that is the same as $a but with no duplicate values.

An optional first argument of $sort_flags may be used to modify the sorting behavior using these values:

  • SORT_REGULAR - compare items normally (don't change types)
  • SORT_NUMERIC - compare items numerically
  • SORT_STRING - compare items as strings
  • SORT_LOCALE_STRING - compare items as strings, based on the current locale.

Default is SORT_STRING. This function and arguments are based upon PHP's array_unique function. 


Post Comment