Skip to content

Tag Archives: PHP-array

The array_pad() is a builtin function in PHP and is used to pad a value fixed number of time onto an array. This function inserts… Read More
The array_merge() is a builtin function in PHP and is used to merge two or more arrays into a single array. This function is used… Read More
The array_change_key_case() function is an inbuilt function in PHP and is used to change case of all of the keys in a given array either… Read More
The array_column() is an inbuilt function in PHP and is used to return the values from a single column in the input array.  Syntax:  array… Read More
The array_map() is an inbuilt function in PHP and it helps to modify all elements one or more arrays according to some user-defined condition in… Read More
The array_count_values() is an inbuilt function in PHP which is used to count all the values inside an array. In other words we can say… Read More
The array_combine() is an inbuilt function in PHP which is used to combine two arrays and create a new array by using one array for… Read More
The array_diff() is an inbuilt function in PHP ans is used to calculate the difference between two or more arrays. This function computes difference according… Read More
The array_fill() is an inbuilt-function in PHP and is used to fill an array with values. This function basically creates an user-defined array with a… Read More
This inbuilt function of PHP is used to get the difference between one or more arrays. This function compares the keys between one or more… Read More
This inbuilt function of PHP is used to get the difference between one or more arrays. This function compares both the keys and values between… Read More
The array_sum() function returns the sum of all the values in an array(one dimensional and associative). It takes an array parameter and returns the sum… Read More
This inbuilt function of PHP is an advanced and extended version of array_slice() function, where we not only can remove elements from an array but… Read More
This builtin function of PHP is used to compute the intersection of two or more arrays. The function is different from array_intersect() and array_intersect_assoc() in… Read More
This inbuilt function of PHP is used to add on or more elements into an array and these elements are added to at the beginning… Read More

Start Your Coding Journey Now!