Array Functions 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/file/ref.array PhD PHP Documentation Group array_change_key_case -- Changes all keys in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-change-key-case array_chunk -- Split an array into chunks 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-chunk array_combine -- Creates an array by using one array for keys and another for its values 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-combine array_count_values -- Counts all the values of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-count-values array_diff_assoc -- Computes the difference of arrays with additional index check 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-diff-assoc array_diff_key -- Computes the difference of arrays using keys for comparison 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-diff-key array_diff_uassoc -- Computes the difference of arrays with additional index check which is performed by a user supplied callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-diff-uassoc array_diff_ukey -- Computes the difference of arrays using a callback function on the keys for comparison 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-diff-ukey array_diff -- Computes the difference of arrays 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-diff array_fill_keys -- Fill an array with values, specifying keys 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-fill-keys array_fill -- Fill an array with values 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-fill array_filter -- Filters elements of an array using a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-filter array_flip -- Exchanges all keys with their associated values in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-flip array_intersect_assoc -- Computes the intersection of arrays with additional index check 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-intersect-assoc array_intersect_key -- Computes the intersection of arrays using keys for comparison 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-intersect-key array_intersect_uassoc -- Computes the intersection of arrays with additional index check, compares indexes by a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-intersect-uassoc array_intersect_ukey -- Computes the intersection of arrays using a callback function on the keys for comparison 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-intersect-ukey array_intersect -- Computes the intersection of arrays 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-intersect array_key_exists -- Checks if the given key or index exists in the array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-key-exists array_keys -- Return all the keys or a subset of the keys of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-keys array_map -- Applies the callback to the elements of the given arrays 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-map array_merge_recursive -- Merge two or more arrays recursively 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-merge-recursive array_merge -- Merge one or more arrays 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-merge array_multisort -- Sort multiple or multi-dimensional arrays 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-multisort array_pad -- Pad array to the specified length with a value 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-pad array_pop -- Pop the element off the end of array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-pop array_product -- Calculate the product of values in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-product array_push -- Push one or more elements onto the end of array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-push array_rand -- Pick one or more random entries out of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-rand array_reduce -- Iteratively reduce the array to a single value using a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-reduce array_replace_recursive -- Replaces elements from passed arrays into the first array recursively 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-replace-recursive array_replace -- Replaces elements from passed arrays into the first array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-replace array_reverse -- Return an array with elements in reverse order 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-reverse array_search -- Searches the array for a given value and returns the corresponding key if successful 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-search array_shift -- Shift an element off the beginning of array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-shift array_slice -- Extract a slice of the array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-slice array_splice -- Remove a portion of the array and replace it with something else 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-splice array_sum -- Calculate the sum of values in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-sum array_udiff_assoc -- Computes the difference of arrays with additional index check, compares data by a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-udiff-assoc array_udiff_uassoc -- Computes the difference of arrays with additional index check, compares data and indexes by a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-udiff-uassoc array_udiff -- Computes the difference of arrays by using a callback function for data comparison 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-udiff array_uintersect_assoc -- Computes the intersection of arrays with additional index check, compares data by a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-uintersect-assoc array_uintersect_uassoc -- Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-uintersect-uassoc array_uintersect -- Computes the intersection of arrays, compares data by a callback function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-uintersect array_unique -- Removes duplicate values from an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-unique array_unshift -- Prepend one or more elements to the beginning of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-unshift array_values -- Return all the values of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-values array_walk_recursive -- Apply a user function recursively to every member of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-walk-recursive array_walk -- Apply a user function to every member of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array-walk array -- Create an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.array arsort -- Sort an array in reverse order and maintain index association 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.arsort asort -- Sort an array and maintain index association 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.asort compact -- Create array containing variables and their values 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.compact count -- Count all elements in an array, or properties in an object 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.count current -- Return the current element in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.current each -- Return the current key and value pair from an array and advance the array cursor 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.each end -- Set the internal pointer of an array to its last element 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.end extract -- Import variables into the current symbol table from an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.extract in_array -- Checks if a value exists in an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.in-array key -- Fetch a key from an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.key krsort -- Sort an array by key in reverse order 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.krsort ksort -- Sort an array by key 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.ksort list -- Assign variables as if they were an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.list natcasesort -- Sort an array using a case insensitive "natural order" algorithm 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.natcasesort natsort -- Sort an array using a "natural order" algorithm 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.natsort next -- Advance the internal array pointer of an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.next pos -- Alias of current 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.pos prev -- Rewind the internal array pointer 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.prev range -- Create an array containing a range of elements 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.range reset -- Set the internal pointer of an array to its first element 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.reset rsort -- Sort an array in reverse order 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.rsort shuffle -- Shuffle an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.shuffle sizeof -- Alias of count 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.sizeof sort -- Sort an array 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.sort uasort -- Sort an array with a user-defined comparison function and maintain index association 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.uasort uksort -- Sort an array by keys using a user-defined comparison function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.uksort usort -- Sort an array by values using a user-defined comparison function 2010-09-03T05:11:17-05:00 tag:php.net,2009-10-13:/manual/en/function.usort