38 lines
966 B
Plaintext
38 lines
966 B
Plaintext
|
|
EXCLUDE_ARRAY(1) EXCLUDE_ARRAY(1)
|
|
|
|
NAME
|
|
exclude_array() - excludes 1 or more elements from an
|
|
array
|
|
|
|
SYNOPSIS
|
|
varargs mixed *exclude_array(mixed *array, int from, int
|
|
to)
|
|
|
|
DESCRIPTION
|
|
Given any type of an array as a first argument, this
|
|
sefun 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.
|
|
|
|
EXAMPLES
|
|
o exclude_array(({ "a", "b", "c" }), 1) returns ({ "a",
|
|
"c" })
|
|
|
|
o exclude_array(({ "a", "b", "c", "d" }), 1, 2) returns
|
|
({ "a", "d" })
|
|
|
|
LOCATION
|
|
/secure/sefun/exclude_array.c
|
|
|
|
SEE ALSO
|
|
distinct_array()
|
|
|
|
Author
|
|
Descartes of Borg
|
|
|
|
1
|
|
|