EXCLUDE_ARRAY(1) EXCLUDE_ARRAY(1)
NNAAMMEE
_e_x_c_l_u_d_e___a_r_r_a_y_(_) - excludes 1 or more elements from an
array
SSYYNNOOPPSSIISS
varargs mixed *exclude_array(mixed *array, int from, int
to)
DDEESSCCRRIIPPTTIIOONN
Given any type of an array as a first argument, this
SimulEfun will return a different array with the elements
from the element in the second argument up to the elements
in the third argument removed from the original. If the
third argument is omitted, then only the element in the
second argument will be omitted.
EEXXAAMMPPLLEESS
+o exclude_array(({ "a", "b", "c" }), 1) returns ({ "a",
"c" })
+o exclude_array(({ "a", "b", "c", "d" }), 1, 2) returns
({ "a", "d" })
LLOOCCAATTIIOONN
/secure/SimulEfun/exclude_array.c
SSEEEE AALLSSOO
_d_i_s_t_i_n_c_t___a_r_r_a_y_(_)
AAuutthhoorr
Descartes of Borg
1