Skip to content

Tag Archives: PHP-array

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
This inbuilt function of PHP is used to push new elements into an array. We can push one or more than one element into the… Read More
This inbuilt function of PHP is used to fetch a random number of elements from an array. The element is a key and can return… Read More
This inbuilt function of PHP is used to delete or pop out and return the last element from an array passed to it as parameter.… Read More
This inbuilt function of PHP is used to reduce the elements of an array into a single value that can be of float, integer or… Read More
This inbuilt function of PHP is used to reverse the elements of an array including the nested arrays. Also, we have an option of preserving… Read More
This inbuilt function of PHP removes the first element from an array and returns the value of the removed element. After the removal of the… Read More

Start Your Coding Journey Now!