Array Functions2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/file/ref.arrayPhDPHP Documentation Grouparray_change_key_case -- Changes all keys in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-change-key-casearray_chunk -- Split an array into chunks2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-chunkarray_combine -- Creates an array by using one array for keys and another for its values2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-combinearray_count_values -- Counts all the values of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-count-valuesarray_diff_assoc -- Computes the difference of arrays with additional index check2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-diff-assocarray_diff_key -- Computes the difference of arrays using keys for comparison2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-diff-keyarray_diff_uassoc -- Computes the difference of arrays with additional index check which is performed by a user supplied callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-diff-uassocarray_diff_ukey -- Computes the difference of arrays using a callback function on the keys for comparison2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-diff-ukeyarray_diff -- Computes the difference of arrays2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-diffarray_fill_keys -- Fill an array with values, specifying keys2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-fill-keysarray_fill -- Fill an array with values2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-fillarray_filter -- Filters elements of an array using a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-filterarray_flip -- Exchanges all keys with their associated values in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-fliparray_intersect_assoc -- Computes the intersection of arrays with additional index check2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-intersect-assocarray_intersect_key -- Computes the intersection of arrays using keys for comparison2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-intersect-keyarray_intersect_uassoc -- Computes the intersection of arrays with additional index check, compares indexes by a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-intersect-uassocarray_intersect_ukey -- Computes the intersection of arrays using a callback function on the keys for comparison2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-intersect-ukeyarray_intersect -- Computes the intersection of arrays2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-intersectarray_key_exists -- Checks if the given key or index exists in the array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-key-existsarray_keys -- Return all the keys or a subset of the keys of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-keysarray_map -- Applies the callback to the elements of the given arrays2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-maparray_merge_recursive -- Merge two or more arrays recursively2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-merge-recursivearray_merge -- Merge one or more arrays2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-mergearray_multisort -- Sort multiple or multi-dimensional arrays2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-multisortarray_pad -- Pad array to the specified length with a value2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-padarray_pop -- Pop the element off the end of array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-poparray_product -- Calculate the product of values in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-productarray_push -- Push one or more elements onto the end of array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-pusharray_rand -- Pick one or more random entries out of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-randarray_reduce -- Iteratively reduce the array to a single value using a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-reducearray_replace_recursive -- Replaces elements from passed arrays into the first array recursively2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-replace-recursivearray_replace -- Replaces elements from passed arrays into the first array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-replacearray_reverse -- Return an array with elements in reverse order2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-reversearray_search -- Searches the array for a given value and returns the corresponding key if successful2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-searcharray_shift -- Shift an element off the beginning of array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-shiftarray_slice -- Extract a slice of the array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-slicearray_splice -- Remove a portion of the array and replace it with something else2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-splicearray_sum -- Calculate the sum of values in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-sumarray_udiff_assoc -- Computes the difference of arrays with additional index check, compares data by a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-udiff-assocarray_udiff_uassoc -- Computes the difference of arrays with additional index check, compares data and indexes by a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-udiff-uassocarray_udiff -- Computes the difference of arrays by using a callback function for data comparison2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-udiffarray_uintersect_assoc -- Computes the intersection of arrays with additional index check, compares data by a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-uintersect-assocarray_uintersect_uassoc -- Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-uintersect-uassocarray_uintersect -- Computes the intersection of arrays, compares data by a callback function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-uintersectarray_unique -- Removes duplicate values from an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-uniquearray_unshift -- Prepend one or more elements to the beginning of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-unshiftarray_values -- Return all the values of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-valuesarray_walk_recursive -- Apply a user function recursively to every member of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-walk-recursivearray_walk -- Apply a user function to every member of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.array-walkarray -- Create an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.arrayarsort -- Sort an array in reverse order and maintain index association2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.arsortasort -- Sort an array and maintain index association2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.asortcompact -- Create array containing variables and their values2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.compactcount -- Count all elements in an array, or properties in an object2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.countcurrent -- Return the current element in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.currenteach -- Return the current key and value pair from an array and advance the array cursor2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.eachend -- Set the internal pointer of an array to its last element2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.endextract -- Import variables into the current symbol table from an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.extractin_array -- Checks if a value exists in an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.in-arraykey -- Fetch a key from an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.keykrsort -- Sort an array by key in reverse order2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.krsortksort -- Sort an array by key2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.ksortlist -- Assign variables as if they were an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.listnatcasesort -- Sort an array using a case insensitive "natural order" algorithm2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.natcasesortnatsort -- Sort an array using a "natural order" algorithm2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.natsortnext -- Advance the internal array pointer of an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.nextpos -- Alias of current2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.posprev -- Rewind the internal array pointer2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.prevrange -- Create an array containing a range of elements2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.rangereset -- Set the internal pointer of an array to its first element2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.resetrsort -- Sort an array in reverse order2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.rsortshuffle -- Shuffle an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.shufflesizeof -- Alias of count2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.sizeofsort -- Sort an array2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.sortuasort -- Sort an array with a user-defined comparison function and maintain index association2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.uasortuksort -- Sort an array by keys using a user-defined comparison function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.uksortusort -- Sort an array by values using a user-defined comparison function2010-09-03T05:11:17-05:00tag:php.net,2009-10-13:/manual/en/function.usort