Skip to content

Tag Archives: PHP-array

In this article, we will see how to get the last element in an array using the end() function in PHP, along with understanding their… Read More
The prev() function is an inbuilt function in PHP. It is used to return the immediate previous element from an array of the element which… Read More
The current() function is an inbuilt function in PHP. It is used to return the value of the element in an array which the internal… Read More
The reset() function is an inbuilt function in PHP. This function is used to move any array’s internal pointer to the first element of that… Read More
The key() function is an inbuilt function in PHP which is used to return the index of the element of a given array to which… Read More
The range() function is an inbuilt function in PHP which is used to create an array of elements of any kind such as integer, alphabets… Read More
You are given an array of strings. You have to change all of the strings present in the given array to uppercase no matter in… Read More
This inbuilt function of PHP is used to count the current elements in the array. The function might return 0 for the variable that has… Read More
The array_chunk() function is an inbuilt function in PHP which is used to split an array into parts or chunks of given size depending upon… Read More
We are given an array which consists of multiple dates in (Y-m-d) format. We have to write a program in PHP to sort all the… Read More
PHP comes with a number of built-in functions that are used to sort arrays in an easier way. Here, we are going to discuss a… Read More
The pos() is an inbuilt function in PHP which is used to return the value of the element in an array which the internal pointer… Read More
The min() function of PHP is used to find the lowest value in an array, or the lowest value of several specified values. The min()… Read More
The array_slice() is an inbuilt function of PHP and is used to fetch a part of an array by slicing through it, according to the… Read More
In this article, we will see how to get the length of the array using the sizeof() function in PHP. The sizeof() function is a… Read More

Start Your Coding Journey Now!