| java.lang.Object com.caucho.quercus.module.AbstractQuercusModule com.caucho.quercus.lib.ArrayModule
Method Summary | |
public Value | array_change_key_case(Env env, ArrayValue array, int toCase) | public Value | array_chunk(Env env, ArrayValue array, int size, boolean preserveKeys) | public Value | array_combine(Env env, ArrayValue keys, ArrayValue values) | public Value | array_count_values(Env env, ArrayValue array) | public Value | array_diff(Env env, ArrayValue array, Value[] arrays) | public Value | array_diff_assoc(Env env, ArrayValue array, Value[] arrays) | public Value | array_diff_key(Env env, ArrayValue array, Value[] arrays) | public Value | array_diff_uassoc(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and not in the other
arrays, keys used for comparison aswell
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. | public Value | array_diff_ukey(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and not in the other
arrays, keys used for comparison only
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. | public Value | array_fill(Env env, long start, long num, Value value) Returns an array with a number of indices filled with the given value,
starting at the start index. | public ArrayValue | array_fill_keys(Env env, ArrayValue keyArray, Value value) | public Value | array_filter(Env env, ArrayValue array, Callback callback) Returns an array that filters out any values that do not hold true when
used in the callback function. | public Value | array_flip(Env env, ArrayValue array) Returns an array with the given array's keys as values and its values as
keys. | public Value | array_intersect(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and also in the other
arrays
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. | public Value | array_intersect_assoc(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and also in the other
arrays, keys are also used in the comparison
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. | public Value | array_intersect_key(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and also in the other
arrays, keys are only used in the comparison
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. | public Value | array_intersect_uassoc(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and also in the other
arrays, keys are also used in the comparison. | public Value | array_intersect_ukey(Env env, ArrayValue array, Value[] arrays) Returns an array with everything that is in array and also in the other
arrays, keys are only used in the comparison. | public static boolean | array_key_exists(Env env, Value key, Value searchArray) | public Value | array_keys(Env env, ArrayValue array, Value searchValue, boolean isStrict) | public Value | array_map(Env env, Callback fun, ArrayValue arg, Value[] args) Maps the given function with the array arguments. | public Value | array_merge(Value[] args) Maps the given function with the array arguments. | public Value | array_merge_recursive(Value[] args) Maps the given function with the array arguments. | public static boolean | array_multisort(Env env, Value[] arrays) Sort the arrays like rows in a database. | public Value | array_pad(Env env, ArrayValue input, long padSize, Value padValue) Returns an array with either the front/end padded with the pad value. | public Value | array_pop(Env env, Value value) | public Value | array_product(Env env, ArrayValue array) Returns the product of the input array's elements as a double. | public int | array_push(Env env, ArrayValue array, Value[] values) | public Value | array_rand(Env env, ArrayValue array, long num) | public Value | array_reduce(Env env, ArrayValue array, Callback callback, Value initialValue) Returns the value of the array when its elements have been reduced using
the callback function. | public Value | array_reverse(Env env, ArrayValue inputArray, boolean keyed) | public Value | array_search(Env env, Value needle, ArrayValue array, boolean strict) | public Value | array_shift(Env env, ArrayValue array) | public Value | array_slice(Env env, ArrayValue array, long offset, Value elements, boolean presKeys) Returns a chunk of the array. | public Value | array_splice(Env env, Value arrayVar, int offset, Value length, Value replace) Returns the removed chunk of the arrayV and splices in replace. | public Value | array_sum(Env env, ArrayValue array) | public Value | array_udiff(Env env, Value[] arrays) Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence.
Parameters: arrays - first array is checked against the rest. | public Value | array_udiff_assoc(Env env, Value[] arrays) Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence. | public Value | array_udiff_uassoc(Env env, Value[] arrays) Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence. | public Value | array_uintersect(Env env, Value[] arrays) Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence.
XXX: callback modifying arrays?
Parameters: arrays - first array is checked against the rest. | public Value | array_uintersect_assoc(Env env, Value[] arrays) Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence. | public Value | array_uintersect_uassoc(Env env, Value[] arrays) Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence. | public Value | array_unique(Env env, ArrayValue array) | public Value | array_unshift(Env env, ArrayValue array, Value[] values) | public Value | array_values(Env env, ArrayValue array) Returns the values in the passed array with numerical indices. | public boolean | array_walk(Env env, ArrayValue array, Callback callback, Value userData) Executes a callback on each of the elements in the array. | public boolean | array_walk_recursive(Env env, ArrayValue array, Callback callback, Value extra) Recursively executes a callback function on all elements in the array,
including elements of elements (i.e., arrays within arrays). | public boolean | arsort(Env env, ArrayValue array, long sortFlag) | public static boolean | asort(Env env, ArrayValue array, long sortFlag) | public ArrayValue | compact(Env env, Value[] variables) Creates an array of corresponding values to variables in the symbol name. | public static Value | count(Env env, Value value, boolean recursive) Returns the size of the array. | public static Value | current(Value value) Returns the current value of the array. | public static Value | each(Env env, Value value) Returns the next value of the array. | public static Value | end(Value value) | public static Value | extract(Env env, ArrayValue array, long rawType, Value valuePrefix) | public String[] | getLoadedExtensions() Returns true for the mysql extension. | public boolean | in_array(Value needle, ArrayValue stack, boolean strict) | public static Value | key(Value value) Returns the current key of the array. | public static boolean | key_exists(Env env, Value key, Value searchArray) Undocumented alias for
ArrayModule.array_key_exists . | public boolean | krsort(Env env, ArrayValue array, long sortFlag) | public static boolean | ksort(Env env, ArrayValue array, long sortFlag) | public static Value | natcasesort(ArrayValue array) | public static Value | natsort(ArrayValue array) | public static Value | next(Value value) Returns the next value of the array. | public static Value | pos(Value value) Returns the current value of the array. | public static Value | prev(Value value) Returns the previous value of the array. | public Value | range(Env env, Value start, Value end, long step) | public static Value | reset(Value value) | public boolean | rsort(Env env, ArrayValue array, long sortFlag) | public static Value | shuffle(ArrayValue array) Returns the current value of the array. | public static Value | sizeof(Env env, Value value, boolean recursive) Returns the size of the array. | public boolean | sort(Env env, ArrayValue array, long sortFlag) | public Value | spliceImpl(Value var, ArrayValue array, int start, int end, ArrayValue replace) | public static boolean | uasort(Env env, ArrayValue array, Callback func, long sortFlag) | public static boolean | uksort(Env env, ArrayValue array, Callback func, long sortFlag) | public boolean | usort(Env env, ArrayValue array, Callback func, long sortFlag) |
CASE_INSENSITIVE | final public static boolean CASE_INSENSITIVE(Code) | | |
CASE_LOWER | final public static int CASE_LOWER(Code) | | |
CASE_SENSITIVE | final public static boolean CASE_SENSITIVE(Code) | | |
CASE_UPPER | final public static int CASE_UPPER(Code) | | |
EXTR_IF_EXISTS | final public static int EXTR_IF_EXISTS(Code) | | |
EXTR_OVERWRITE | final public static int EXTR_OVERWRITE(Code) | | |
EXTR_PREFIX_ALL | final public static int EXTR_PREFIX_ALL(Code) | | |
EXTR_PREFIX_IF_EXISTS | final public static int EXTR_PREFIX_IF_EXISTS(Code) | | |
EXTR_PREFIX_INVALID | final public static int EXTR_PREFIX_INVALID(Code) | | |
EXTR_PREFIX_SAME | final public static int EXTR_PREFIX_SAME(Code) | | |
EXTR_REFS | final public static int EXTR_REFS(Code) | | |
EXTR_SKIP | final public static int EXTR_SKIP(Code) | | |
KEY_RESET | final public static boolean KEY_RESET(Code) | | |
NOT_STRICT | final public static boolean NOT_STRICT(Code) | | |
NO_KEY_RESET | final public static boolean NO_KEY_RESET(Code) | | |
SORT_ASC | final public static int SORT_ASC(Code) | | |
SORT_DESC | final public static int SORT_DESC(Code) | | |
SORT_LOCALE_STRING | final public static int SORT_LOCALE_STRING(Code) | | |
SORT_NORMAL | final public static int SORT_NORMAL(Code) | | |
SORT_NUMERIC | final public static int SORT_NUMERIC(Code) | | |
SORT_REGULAR | final public static int SORT_REGULAR(Code) | | |
SORT_REVERSE | final public static int SORT_REVERSE(Code) | | |
SORT_STRING | final public static int SORT_STRING(Code) | | |
STRICT | final public static boolean STRICT(Code) | | |
array_change_key_case | public Value array_change_key_case(Env env, ArrayValue array, int toCase)(Code) | | Changes the key case
|
array_diff | public Value array_diff(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and not in the other
arrays using a passed callback function for comparing
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays |
array_diff_assoc | public Value array_diff_assoc(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and not in the other
arrays, keys also used
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays |
array_diff_key | public Value array_diff_key(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and not in the other
arrays, keys used for comparison
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst an array with all of the values that are in the primary array butnot in the other arrays |
array_diff_uassoc | public Value array_diff_uassoc(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and not in the other
arrays, keys used for comparison aswell
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array butnot in the other arrays |
array_diff_ukey | public Value array_diff_ukey(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and not in the other
arrays, keys used for comparison only
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array butnot in the other arrays |
array_fill | public Value array_fill(Env env, long start, long num, Value value)(Code) | | Returns an array with a number of indices filled with the given value,
starting at the start index.
Parameters: start - the index to start filling the array Parameters: num - the number of entries to fill Parameters: value - the value to fill the entries with an array filled with the given value starting from the given startindex |
array_filter | public Value array_filter(Env env, ArrayValue array, Callback callback)(Code) | | Returns an array that filters out any values that do not hold true when
used in the callback function.
Parameters: array - the array to filter Parameters: callback - the function name for filtering a filtered array |
array_flip | public Value array_flip(Env env, ArrayValue array)(Code) | | Returns an array with the given array's keys as values and its values as
keys. If the given array has matching values, the latest value will be
transfered and the others will be lost.
Parameters: array - the array to flip an array with it's keys and values swapped |
array_intersect | public Value array_intersect(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and also in the other
arrays
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays |
array_intersect_assoc | public Value array_intersect_assoc(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and also in the other
arrays, keys are also used in the comparison
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays |
array_intersect_key | public Value array_intersect_key(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and also in the other
arrays, keys are only used in the comparison
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays |
array_intersect_uassoc | public Value array_intersect_uassoc(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and also in the other
arrays, keys are also used in the comparison. Uses a callback function for
evalutation the keys.
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays |
array_intersect_ukey | public Value array_intersect_ukey(Env env, ArrayValue array, Value[] arrays)(Code) | | Returns an array with everything that is in array and also in the other
arrays, keys are only used in the comparison. Uses a callback function for
evalutation the keys.
Parameters: array - the primary array Parameters: arrays - the vector of arrays to check the primary array's valuesagainst. The last element is the callback function. an array with all of the values that are in the primary array andin the other arrays |
array_key_exists | public static boolean array_key_exists(Env env, Value key, Value searchArray)(Code) | | Checks if the key is in the given array
Parameters: key - a key to check for in the array Parameters: searchArray - the array to search for the key in true if the key is in the array, and false otherwise |
array_keys | public Value array_keys(Env env, ArrayValue array, Value searchValue, boolean isStrict)(Code) | | Returns an array of the keys in the given array
Parameters: array - the array to obtain the keys for Parameters: searchValue - the corresponding value of the returned key array an array containing the keys |
array_map | public Value array_map(Env env, Callback fun, ArrayValue arg, Value[] args)(Code) | | Maps the given function with the array arguments.
XXX: callback modifying array?
Parameters: fun - the function name Parameters: args - the vector of array arguments an array with all of the mapped values |
array_merge | public Value array_merge(Value[] args)(Code) | | Maps the given function with the array arguments.
Parameters: args - the vector of array arguments an array with all of the mapped values |
array_merge_recursive | public Value array_merge_recursive(Value[] args)(Code) | | Maps the given function with the array arguments.
Parameters: args - the vector of array arguments an array with all of the mapped values |
array_multisort | public static boolean array_multisort(Env env, Value[] arrays)(Code) | | Sort the arrays like rows in a database.
Parameters: arrays - arrays to sort true on success, and false on failure |
array_pad | public Value array_pad(Env env, ArrayValue input, long padSize, Value padValue)(Code) | | Returns an array with either the front/end padded with the pad value. If
the pad size is positive, the padding is performed on the end. If
negative, then the array is padded on the front. The pad size is the new
array size. If this size is not greater than the current array size, then
the original input array is returned.
Parameters: input - the array to pad Parameters: padSize - the amount to pad the array by Parameters: padValue - determines front/back padding and the value to place in thepadded space a padded array |
array_product | public Value array_product(Env env, ArrayValue array)(Code) | | Returns the product of the input array's elements as a double.
Parameters: array - the array for who's product is to be found the produce of the array's elements |
array_push | public int array_push(Env env, ArrayValue array, Value[] values)(Code) | | Appends a value to the array
the number of elements in the final array |
array_rand | public Value array_rand(Env env, ArrayValue array, long num)(Code) | | Returns num sized array of random keys from the given array
Parameters: array - the array from which the keys will come from Parameters: num - the number of random keys to return the produce of the array's elements |
array_reduce | public Value array_reduce(Env env, ArrayValue array, Callback callback, Value initialValue)(Code) | | Returns the value of the array when its elements have been reduced using
the callback function.
Parameters: array - the array to reduce Parameters: callback - the function to use for reducing the array Parameters: initialValue - used as the element before the first element of thearray for purposes of using the callback function the result from reducing the input array with the callbackfunction |
array_reverse | public Value array_reverse(Env env, ArrayValue inputArray, boolean keyed)(Code) | | Returns the inputted array reversed, preserving the keys if keyed is true
Parameters: inputArray - the array to reverse Parameters: keyed - true if the keys are to be preservered the array in reverse |
array_search | public Value array_search(Env env, Value needle, ArrayValue array, boolean strict)(Code) | | Returns the key of the needle being searched for or false if it's not
found
Parameters: needle - the value to search for Parameters: array - the array to search Parameters: strict - checks for type aswell the key of the needle |
array_shift | public Value array_shift(Env env, ArrayValue array)(Code) | | Shifts the elements in the array left by one, returning the leftmost value
Parameters: array - the array to shift the left most value in the array |
array_slice | public Value array_slice(Env env, ArrayValue array, long offset, Value elements, boolean presKeys)(Code) | | Returns a chunk of the array. The offset is the start index, elements is
the number of values to take, and presKeys is if the keys are to be
preserved. If offset is negative, then it's that number from the end of the
array. If elements is negative, then the new array will have from offset
to elements number of values.
Parameters: array - the array to take the chunk from Parameters: offset - the start index for the new array chunk Parameters: elements - the number of elements in the array chunk Parameters: presKeys - true if the keys of the elements are to be preserved, falseotherwise the array chunk |
array_splice | public Value array_splice(Env env, Value arrayVar, int offset, Value length, Value replace)(Code) | | Returns the removed chunk of the arrayV and splices in replace. If offset
is negative, then the start index is that far from the end. Otherwise, it
is the start index. If length is not given then from start index to the
end is removed. If length is negative, that is the index to stop removing
elements. Otherwise that is the number of elements to remove. If replace
is given, replace will be inserted into the arrayV at offset.
Parameters: array - the arrayV to splice Parameters: offset - the start index for the new arrayV chunk Parameters: length - the number of elements to remove / stop index Parameters: replace - the elements to add to the arrayV the part of the arrayV removed from input |
array_sum | public Value array_sum(Env env, ArrayValue array)(Code) | | Returns the sum of the elements in the array
Parameters: array - the array to sum the sum of the elements |
array_udiff | public Value array_udiff(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence.
Parameters: arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are not in therest |
array_udiff_assoc | public Value array_udiff_assoc(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence. Also checks the key for equality using an internal
comparison function.
Parameters: arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are not in therest |
array_udiff_uassoc | public Value array_udiff_uassoc(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are not
present in the other arrays, using a provided callback function to
determine equivalence. Also checks keys using a provided callback
function.
Parameters: arrays - first array is checked against the rest. Last two elementarethe callback functions. an array with all the values of the first array that are not in therest |
array_uintersect | public Value array_uintersect(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence.
XXX: callback modifying arrays?
Parameters: arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are in therest |
array_uintersect_assoc | public Value array_uintersect_assoc(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence. Also checks the keys for equivalence using an internal
comparison.
XXX: callback modifying arrays?
Parameters: arrays - first array is checked against the rest. Last element is thecallback function. an array with all the values of the first array that are in therest |
array_uintersect_uassoc | public Value array_uintersect_uassoc(Env env, Value[] arrays)(Code) | | Creates an array with all the values of the first array that are present in
the other arrays, using a provided callback function to determine
equivalence. Also checks the keys for equivalence using a pass callback
function
XXX: callback modifying arrays?
Parameters: arrays - first array is checked against the rest. Last two elementsare the callback functions. an array with all the values of the first array that are in therest |
array_unique | public Value array_unique(Env env, ArrayValue array)(Code) | | Returns the inputted array without duplicates
Parameters: array - the array to get rid of the duplicates from an array without duplicates |
array_unshift | public Value array_unshift(Env env, ArrayValue array, Value[] values)(Code) | | Prepends the elements to the array
Parameters: array - the array to shift Parameters: values - the left most value in the array |
array_values | public Value array_values(Env env, ArrayValue array)(Code) | | Returns the values in the passed array with numerical indices.
Parameters: array - the array to get the values from an array with the values of the passed array |
array_walk | public boolean array_walk(Env env, ArrayValue array, Callback callback, Value userData)(Code) | | Executes a callback on each of the elements in the array.
Parameters: array - the array to walk along Parameters: callback - the callback function Parameters: userData - extra parameter required by the callback function true if the walk succedded, false otherwise |
array_walk_recursive | public boolean array_walk_recursive(Env env, ArrayValue array, Callback callback, Value extra)(Code) | | Recursively executes a callback function on all elements in the array,
including elements of elements (i.e., arrays within arrays). Returns true
if the process succeeded, otherwise false.
Parameters: array - the array to walk Parameters: call - the name of the callback function Parameters: extra - extra parameter required by the callback function true if the walk succedded, false otherwise |
arsort | public boolean arsort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on values in reverse order, preserving keys
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
asort | public static boolean asort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on values in ascending order, preserving keys
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
compact | public ArrayValue compact(Env env, Value[] variables)(Code) | | Creates an array of corresponding values to variables in the symbol name.
The passed parameters are the names of the variables to be added to the
array.
Parameters: variables - contains the names of variables to add to the array an array with the values of variables that match those passed |
count | public static Value count(Env env, Value value, boolean recursive)(Code) | | Returns the size of the array.
|
current | public static Value current(Value value)(Code) | | Returns the current value of the array.
|
extract | public static Value extract(Env env, ArrayValue array, long rawType, Value valuePrefix)(Code) | | Inputs new variables into the symbol table from the passed array
Parameters: array - the array contained the new variables Parameters: rawType - flag to determine how to handle collisions Parameters: valuePrefix - used along with the flag the number of new variables added from the array to the symboltable |
getLoadedExtensions | public String[] getLoadedExtensions()(Code) | | Returns true for the mysql extension.
|
in_array | public boolean in_array(Value needle, ArrayValue stack, boolean strict)(Code) | | Determines if the key is in the array
Parameters: needle - the array to sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
key | public static Value key(Value value)(Code) | | Returns the current key of the array.
|
krsort | public boolean krsort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on keys in reverse order, preserving keys
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
ksort | public static boolean ksort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on keys in ascending order, preserving keys
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
natcasesort | public static Value natcasesort(ArrayValue array)(Code) | | Sorts the array based on string values using natural order, preserving
keys, case insensitive
Parameters: array - the array to sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
natsort | public static Value natsort(ArrayValue array)(Code) | | Sorts the array based on string values using natural order, preserving
keys, case sensitive
Parameters: array - the array to sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
next | public static Value next(Value value)(Code) | | Returns the next value of the array.
|
pos | public static Value pos(Value value)(Code) | | Returns the current value of the array.
|
prev | public static Value prev(Value value)(Code) | | Returns the previous value of the array.
|
range | public Value range(Env env, Value start, Value end, long step)(Code) | | Creates an array using the start and end values provided
Parameters: start - the 0 index element Parameters: end - the length - 1 index element Parameters: step - the new value is increased by this to determine the value forthe next element the new array |
rsort | public boolean rsort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on values in reverse order
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
sizeof | public static Value sizeof(Env env, Value value, boolean recursive)(Code) | | Returns the size of the array.
|
sort | public boolean sort(Env env, ArrayValue array, long sortFlag)(Code) | | Sorts the array based on values in ascending order
Parameters: array - the array to sort Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
uasort | public static boolean uasort(Env env, ArrayValue array, Callback func, long sortFlag)(Code) | | Sorts the array based on values in ascending order using a callback
function
Parameters: array - the array to sort Parameters: func - the name of the callback function Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
uksort | public static boolean uksort(Env env, ArrayValue array, Callback func, long sortFlag)(Code) | | Sorts the array based on values in ascending order using a callback
function
Parameters: array - the array to sort Parameters: func - the name of the callback function Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
usort | public boolean usort(Env env, ArrayValue array, Callback func, long sortFlag)(Code) | | Sorts the array based on values in ascending order using a callback
function
Parameters: array - the array to sort Parameters: func - the name of the callback function Parameters: sortFlag - provides optional methods to process the sort true if the sort works, false otherwise throws: ClassCastException - if the elements are not mutually comparable |
|
|