array_addtoset (line
63)
Add a single element, or a set, to a set
array
array_addtoset
(mixed $element, array $array)
-
mixed
$element: single element or array (set), to be added
-
array
$array: set to which the first parameter is to be added
array_removefromset (line
42)
Removes a single element, or a subset, from a set
Based on a user contribution from doug at NOSPAM dot thrutch dot co dot uk 06-Jan-2006 01:22 on http://www.php.net/array_diff
array
array_removefromset
(mixed $element, array $array)
-
mixed
$element: single element or array (subset), to be removed
-
array
$array: set from which the first parameter is to be removed
array_subset (line
24)
Checks if array1 is a subset of array2
bool
array_subset
(array $array1, array $array2)
-
array
$array1: array1: possible subset of array2
-
array
$array2: array2: array which possibly contains array1 as a subset