Additional helper functions for working with arrays
Located in /support/lib/Support/ArrayHelper.php (line 14)
Returns a new array containing all elements from source except any that are also present in exclude. Both input arrays must be sorted.
This function will reset the pointer for both arrays.
Returns a new array containing only those values from source which are also present in incl. Both input arrays must be sorted.
This function will reset the pointer for both arrays.
Test an array to see if it is associative. Note that this resets the array pointer.
This test method has two modes. The default is quick mode, which examines only the first index if the array to see if it is numeric and begins at 0. The second mode examines all keys in the array until an out of sequence/non-numeric index is found or the end of the array is reached.
Potentially quick mode could mistake an array like this for a non-associative array:
Turning off quick mode would correctly determine such an array is associative, but at the expense of additional processing for non-associative arrays.
Similar to exlude_sorted, only the keys in source are compared to the values in exclude and only those key/value pairs whose keys are not in exlude are returned. The source array must be sorted by keys and the exclude array must be sorted by value.
This function will reset the pointer for the exclude array.
Similar to intersect_sorted, only the keys in source are compared to the value in incl and only those key/value pairs whose keys are in incl are returned. The source array must be sorted by keys and the incl array must be sorted by value.
This function will reset the pointer for the incl array.
Perform a basic two-way merge on pre-sorted input arrays.
This function will reset the pointer for both arrays.
Documentation generated on Wed, 25 Apr 2012 09:46:39 -0700 by phpDocumentor 1.4.3