DISTINCT_ARRAY(1) DISTINCT_ARRAY(1)
NNAAMMEE
_d_i_s_t_i_n_c_t___a_r_r_a_y_(_) - returns an array of distinct members
SSYYNNOOPPSSIISS
mixed *distinct_array(mixed *arr)
DDEESSCCRRIIPPTTIIOONN
With the first argument of an array of any type, this
function will filter out duplicate members and return an
array with only unique members.
EEXXAAMMPPLLEESS
distinct_array(({ "a", "b", "c", "b", "d", "a" })) returns
({ "a", "b", "c", "d" })
NNOOTTEE
The order of the result array is NOT guaranteed.
LLOOCCAATTIIOONN
/secure/SimulEfun/distinct_array.c
SSEEEE AALLSSOO
_e_x_c_l_u_d_e___a_r_r_a_y_(_)
AAuutthhoorr
Descartes of Borg
1