Skip to content

Tag Archives: PHP-array

In this article, we will see how to get an array value using the array_values() function in PHP, along with understanding their implementation through the… Read More
The uasort() function is a builtin function in PHP and is used to sort an array such that array indices maintain their correlation with the… Read More
The array_replace() function is a builtin function in PHP and it takes a list of arrays separated by commas (,) as parameters and replaces all… Read More
The array_fill_keys() function is a builtin function in PHP and is used to create a new array filled with the given keys and value provided… Read More
The shuffle() Function is a builtin function in PHP and is used to shuffle or randomize the order of the elements in an array. This… Read More
Many times while writing programs or development we need to filter arrays to remove duplicates. PHP provides us with an inbuilt function to do this,… Read More
The compact() function is an inbuilt function in PHP and it is used to create an array using variables. This function is opposite of extract()… Read More
The extract() Function is an inbuilt function in PHP. The extract() function does array to variable conversion. That is it converts array keys into variable… Read More
This built-in function of PHP is used to exchange elements within an array, i.e., exchange all keys with their associated values in an array and… Read More
There are some point of time when we need to calculate the product of all elements in an array. The most basic way to do… Read More
Imploding and Exploding are couple of important functions of PHP that can be applied on strings or arrays. PHP provides us with two important builtin… Read More
The array_intersect_assoc() is a builtin function in PHP and is used to compute the intersection of two or more arrays. This function is similar to… Read More
This built-in function in PHP is used to filter the elements of an array using a user-defined function which is also called a callback function.… Read More
This builtin function of PHP is used to compute the intersection of two or more arrays. The function is used to compare the values of… Read More
The array_keys() is a built-in function in PHP and is used to return either all the keys of and array or the subset of the… Read More

Start Your Coding Journey Now!