Skip to content

Tag Archives: PHP-array

The sort() function is an inbuilt function in PHP and is used to sort an array in ascending order i.e, smaller to greater. It sorts… Read More
The array_merge_recursive() is an inbuilt function in PHP and is used to merge two or more arrays into a single array recursively. This function is… Read More
The array_product() is an inbuilt function in PHP and it returns the product of all numbers present in the given array. The function accepts an… Read More
The stripslashes() function is a built-in function in PHP. This function removes backslashes in a string. Syntax: stripslashes(string) Parameter: This function accepts only one parameter… Read More
You are given two arrays of n-elements each. You have to find all the common elements of both elements, without using any loop in php… Read More
We are given an array with key-value pair, and we need to find the last value of array without affecting the array pointer. Examples: Input… Read More
Given an array of elements. We need to find the Standard Deviation of the elements of the array in PHP. Examples: Input : array(2, 3,… Read More
The array_multisort() is an inbuilt function in PHP which is used to sort multiple arrays at once or a multi-dimensional array with each individual dimension.… Read More
The uksort() function is a built-in function in PHP and is used to sort an array according to the keys and not values using a… Read More
The array_walk_recursive() function is an inbuilt function in PHP. The array_walk_recursive() function walks through the entire array regardless of pointer position and applies a callback… Read More
The array_walk() function is an inbuilt function in PHP. The array_walk() function walks through the entire array regardless of pointer position and applies a callback… Read More
The array_replace_recursive() is an inbuilt function in PHP that replaces the values of the first array with the values from following arrays recursively. It performs… Read More
We are given two strings, we need to check if strings are Anagram. Examples: Input : "anagram", "nagaram" Output : yes Input : "mat", "fat"… Read More
We have to find element(s) in array that are missing from an array in range from array minimum to array maximum. Examples: Input : arr[]… Read More
In this article, we will see how to find the value in the array using the in_array() function in PHP, & will also understand its… Read More

Start Your Coding Journey Now!