Array Logical Operator Functions | |
---|---|
array_diff() | |
array array_diff(array $qaArray, array $qaRemove1, ...) | |
This function returns an array of all of the values of $qaArray that are not contained in any of the arrays that come after it. The keys are preserved from the original array. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
array_diff_assoc() | |
array array_diff_assoc(array $qaArray, array $qaRemove1, ...) | |
This function returns an array of all of the key and value pairs of $qaArray that are not contained in any of the arrays that come after it. The keys are preserved from the original array. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
array_diff_key() | |
array array_diff_key(array $qaArray, array $qaRemove1, ...) | |
This function returns an array of all of the entries of $qaArray that have keys that are not contained in any of the arrays that come after it. | |
Argument | Description |
array $qaArray | This is the array that contians the entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose keys are not returned in the result. |
array_diff_uassoc() | |
array array_diff_uassoc(array $qaArray, array $qaRemove1, ..., function $fnCompareKeyFn) | |
This function returns an array of all of the key and value pairs of $qaArray that are not contained in any of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareKeyFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
function $fnCompareKeyFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. |
array_diff_ukey() | |
array array_diff_ukey(array $qaArray, array $qaRemove1, ..., function $fnCompareKeyFn) | |
This function returns an array of all of the entries of $qaArray that have keys that are not contained in any of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareKeyFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
function $fnCompareKeyFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. |
array_intersect() | |
array array_intersect(array $qaArray1, array $qaArray2, ...) | |
This function returns an array of all of the entries that are common to all of the arrays that are passed in. The comparison is done only on the values, but it preserves the keys of the first array. The function requires at least two arrays as arguments. | |
Argument | Description |
array $qaArray1 | This is the first array that is used in the intersection. This array supplies the keys for the returned intersection array. |
array $qaArray2 | This is the second array tha is used in the intersection. There may be additional arrays. |
array_intersect_assoc() | |
array array_intersect_assoc(array $qaArray1, array $qaArray2, ...) | |
This function returns an array of all of the entries that are common to all of the arrays that are passed in. The comparison is done with both the key and the value. The function requires at least two arrays as arguments. | |
Argument | Description |
array $qaArray1 | This is the first array that is used in the intersection. |
array $qaArray2 | This is the second array tha is used in the intersection. There may be additional arrays. |
array_intersect_key() | |
array array_intersect_key(array $qaArray1, array $qaArray2, ...) | |
This function returns an array of all of the entries that have keys that are common to all of the arrays that are passed in. The comparison is done only on the key. The function requires at least two arrays as arguments. The values are supplied by the first array. | |
Argument | Description |
array $qaArray1 | This is the first array that is used in the intersection. This array supplies the values for the intersection. |
array $qaArray2 | This is the second array tha is used in the intersection. There may be additional arrays. |
array_intersect_uassoc() | |
array array_intersect_uassoc(array $qaArray1, array $qaArray2, ..., function $fnCompareBothFn) | |
This function returns an array of all of the key and value pairs of $qaArray1 that have equivalent, according to $fnCompareBothFn, key and value pairs contained in all of the arrays that come after it. The function $fnCompareBothFn compares the keys and values for this purpose. This function requires at least two arrays. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaArray2 | This is the second array tha is used in the intersection. There may be additional arrays. |
function $fnCompareBothFn | This a key comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. The function is used twice, once for the keys and once for the values. |
array_intersect_ukey() | |
array array_intersect_ukey(array $qaArray1, array $qaArray2, ..., function $fnCompareKeyFn) | |
This function returns an array of all of the key and value pairs of $qaArray1 that have keys contained in all of the arrays that come after it. The function $fnCompareKeyFn compares the keys for this purpose. This function requires at least two arrays. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaArray2 | This is the second array tha is used in the intersection. There may be additional arrays. |
function $fnCompareKeyFn | This a key comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. |
array_udiff() | |
array array_udiff(array $qaArray, array $qaRemove1, ..., function $fnCompareValueFn) | |
This function returns an array of all of the values of $qaArray that are not contained in any of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareValueFn compares the values for this purpose. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
function $fnCompareValueFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. |
array_udiff_assoc() | |
array array_udiff_assoc(array $qaArray, array $qaRemove1, ..., function $fnCompareKeysFn) | |
This function returns an array of all of the values of $qaArray that do not have keys contained in any of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareKeysFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
function $fnCompareKeysFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first key is less than, equal to, or greater than the second, respectively. |
array_udiff_uassoc() | |
array array_udiff_uassoc(array $qaArray, array $qaRemove1, ..., function $fnCompareValueFn, function $fnCompareKeysFn) | |
This function returns an array of all of the entries of $qaArray that do not have key/value pairs contained in any of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareValueFn compares the values and $fnCompareKeysFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray | This is the array that contains entries that will be returned in the array, along with their associated keys. |
array $qaRemove1,... | These are the arrays whose entries are not returned in the result. |
function $fnCompareValueFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first value is less than, equal to, or greater than the second, respectively. |
function $fnCompareKeysFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first key is less than, equal to, or greater than the second, respectively. |
array_uintersect() | |
array array_uintersect(array $qaArray1, array $qaArray2, ..., function $fnCompareValueFn) | |
This function returns an array of all of the values of $qaArray1 that are also contained in all of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareValueFn compares the values for this purpose. | |
Argument | Description |
array $qaArray1, array $qaArray2, ... | This is the set of arrays that will be used for the intersection. |
function $fnCompareValueFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first entry is less than, equal to, or greater than the second, respectively. |
array_uintersect_assoc() | |
array array_uintersect_assoc(array $qaArray1, array $qaArray2, ..., function $fnCompareKeysFn) | |
This function returns an array of all of the values of $qaArray1 that have keys contained in all of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareKeysFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray1, array $qaArray2, ... | This is the set of arrays that will be used for the intersection. |
function $fnCompareKeysFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first key is less than, equal to, or greater than the second, respectively. |
array_uintersect_uassoc() | |
array array_uintersect_uassoc(array $qaArray1, array $qaArray2, ..., function $fnCompareValueFn, function $fnCompareKeysFn) | |
This function returns an array of all of the entries of $qaArray1 that have key/value pairs contained in all of the arrays that come after it. The keys are preserved from the original array. The function $fnCompareValueFn compares the values and $fnCompareKeysFn compares the keys for this purpose. | |
Argument | Description |
array $qaArray1, array $qaArray2, ... | This is the set of arrays that will be used for the intersection. |
function $fnCompareValueFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first value is less than, equal to, or greater than the second, respectively. |
function $fnCompareKeysFn | This a comparison function that returns an integer value that is greater than zero, zero, or less than zero to indicate that the first key is less than, equal to, or greater than the second, respectively. |
© 20072024 XoaX.net LLC. All rights reserved.