Skip to content

Tag Archives: PHP-array

The collection objects in PHP are characterized by a length parameter to indicate the number of elements contained within it. It is necessary to estimate… Read More
In PHP, an array is a type of data structure that allows us to store similar type of data under a single variable. The array… Read More
An array is a collection of objects that contain a group of variables stored under the same name. All the elements belong to the same… Read More
PHP allows us to display the text in various formats using various inbuilt methods.  Using echo command: The echo command can be used to display… Read More
An array is a collection of elements stored together. Every element in an array belong to a similar data type. The elements in the array… Read More
In this article, we will discuss how to find the index of an element in an array in PHP. Array indexing starts from 0 to… Read More
In this article, we will discuss how to remove duplicate elements from an array in PHP. We can get the unique elements by using array_unique()… Read More
The array_push() and array_pop() methods in PHP is used to perform insertions as well as deletions from the object. The article below illustrates the usage… Read More
Given an array of integers and the task is to write a program that efficiently finds the second largest element present in the array.  … Read More
In this article we will discuss about array_count_values() function in PHP The array_count_values() function is used to count all the values inside an array. In… Read More
In this article, we will discuss about how to use array_merge() and array_combine() functions in PHP. Both functions are array based functions used to combine… Read More
In this article, we will discuss how to display the array structure and values in PHP. To display the array structure and its values, we… Read More
In this article, we will create a holiday calendar for a given month using the concept of tables in HTML, CSS for styling the calendar,… Read More
There are multiple ways to delete an element from an array in PHP. This article discusses some of the most common methods used in PHP… Read More
Each entry in the associative array is characterized by a unique key-value pair. An array can contain singular data types belonging to variables or other… Read More

Start Your Coding Journey Now!