admin

admin

PHP array_replace() Function

The array_replace() function replaces the values of the first array with the values from following arrays. Tip: You can assign one array to the function, or as many as you like. If a key from array1 exists in array2, values…

PHP array_reduce() Function

This function applies iteratively the function function to the elements of the array, so as to reduce the array to a single value. Note: If the array is empty and initial is not passed, this function returns NULL. Returns the…

PHP array_rand() Function

The array_rand() function returns a random key from an array, or it returns an array of random keys if you specify that the function should return more than one key. Returns a random key from an array, or an array…

PHP array_push() Function

The array_push() function is used to add one or more elements onto the end of an array. The length of array increases by the number of variables pushed. Tip: You can add one value, or as many as you like.…

PHP array_product() Function

It returns the product of values in an array as an integer or float. The array_product() function calculates and returns the product of an array. As of PHP 5.3.6, the product of an empty array is 1. Before PHP 5.3.6,…

PHP array_pop() Function

The array_pop function is used to remove the last array element. This function has to use one argument that is array name and also this array function return one returns values. Note: This function will reset() the array pointer of…

PHP array_pad() Function

The array_pad() function is used to padding (insert) a specified number of elements, with a specified value, into an array. Tip: If you assign a negative size parameter, the function will insert new elements BEFORE the original elements (See example…

PHP array_multisort() Function

The array_multisort() function returns a sorted array. You can assign one or more arrays. The function sorts the first array, and the other arrays follow, then, if two or more values are the same, it sorts the next array, and…

PHP array_merge_recursive() Function

The array_merge_recursive() function is used to merge the elements of one or more arrays together. The elements of one are appended to the end of the previous one. The difference between this function and the array_merge() function is when two…

PHP array_merge() Function

The array_merge() function merges one or more arrays into one array. If the input arrays have matching string keys, then the later value will override it’s the previous counterpart. If the input arrays contain numeric keys, the later value will…