Available in all versions of PHP Joins two or more fields together to create one large field. Parameters Parameter Data Type Default Value Note $array1 array not Base array for merge. $array2 array null Second merge field. $_ array null nth merge fie…
Availability in PHP 4.0 Apply a user function to every member of an array Parameters Parameter Data type Default value Note $array array not The input array. $funcname callback not Typically, funcname takes on two parameters. The array parameter's va…
Availability in PHP 4.0 Push one or more elements onto the end of array Parameters Parameter Data type Default value Note $array array not The input array. $var mixed not The pushed value. $_ mixed null Return values int the new number of elements in…
Availability in PHP 4.0 Pop the element off the end of array Parameters Parameter Data type Default value Note $array array not The array to get the value from. Return values mixed the last value of array. If array is empty (or is not an array), &nul…
Availability in PHP 4.0 Shift an element off the beginning of array Parameters Parameter Data type Default value Note $array array not The input array. Return values mixed the shifted value, or &null; if array is empty or is not an array. Additional…
Availability in versions: PHP 4.2.0 Filling the field with values Parameters Parameter Data type Default value Note $start_index int not First index of the returned field. Only non-negative indices are supported. $num int not Number of elements inser…
Availability in PHP 4.0 Sort multiple or multi-dimensional arrays Parameters Parameter Data type Default value Note $arr array not An array being sorted. $arg mixed null, Optionally another array, or sort options for the previous array argument: SORT…
Availability in PHP 4.0 Remove a portion of the array and replace it with something else Parameters Parameter Data type Default value Note $input array not The input array. $offset int not If offset is positive then the start of removed portion is at…
Availability in PHP 4.0 This function appends one or more elements to the beginning of an array. Warning: Numeric indices will be renumbered from zero. The function resets the internal pointer to the current element in the array. Using array_unshift(…
Availability in PHP 4.0 Extract a slice of the array Parameters Parameter Data type Default value Note $array array not The input array. $offset int not If offset is non-negative, the sequence will start at that offset in the array. If offset is nega…
Availability in versions: PHP 5.2.0 Fill an array with values, specifying keys Parameters Parameter Data type Default value Note $keys array not Array of values that will be used as keys. Illegal values for key will be converted to string. $value mix…
Availability in PHP 5.0 Apply a user function recursively to every member of an array Parameters Parameter Data type Default value Note $input array not The input array. $funcname callback not Typically, funcname takes on two parameters. The input pa…
Availability in versions: PHP 4.0.5 Searches the array for a given value and returns the corresponding key if successful Parameters Parameter Data type Default value Note $needle mixed not The searched value. $haystack array not The array. $strict bo…