Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
Web technologies
610+ articles
PHP-Questions
410+ articles
PHP-string
150+ articles
PHP-basics
93 articles
php
30 articles
PHP-ArrayObject
21 articles
PHP-array
180+ posts
Popular Articles
Recent Articles
How to remove duplicate values from array using PHP?
Last Updated: 29 July 2024
In this article, we will discuss removing duplicate elements from an array in PHP. We can get the unique elements by using array_unique() fu
...read more
Web Technologies
PHP-array
PHP-function
Picked
PHP
PHP-Questions
How to sort an Array of Associative Arrays by Value of a Given Key in PHP ?
Last Updated: 10 July 2024
Each entry in the associative array is characterized by a unique key-value pair. An array can contain singular data types belonging to varia
...read more
Web Technologies
PHP-array
PHP-function
Picked
PHP
PHP-Questions
How to insert an item at the beginning of an array in PHP ?
Last Updated: 21 August 2024
Arrays in PHP are a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby sa
...read more
Web Technologies
PHP-array
Picked
PHP
PHP Programs
Similar Topics
Web Technologies
40.3k+ articles
PHP
3.8k+ articles
PHP-function
2.2k+ articles
PHP Programs
610+ articles
Web technologies
610+ articles
PHP-Questions
410+ articles
PHP-string
150+ articles
PHP-basics
93+ articles
php
30+ articles
PHP-ArrayObject
21+ articles
How to merge the duplicate value in multidimensional array in PHP?
Last Updated: 29 July 2024
To merge the duplicate value in a multidimensional array in PHP, first, create an empty array that will contain the final result. Then we it
...read more
Web Technologies
PHP-array
Picked
PHP
PHP Programs
How to search by multiple key => value in PHP array ?
Last Updated: 15 July 2024
In a multidimensional array, if there is no unique pair of key = value (more than one pair of key = value) exists then in that case if we se
...read more
Web Technologies
PHP-array
PHP
PHP Programs
ArrayObject append() function in PHP
Last Updated: 22 March 2019
The append() function of the ArrayObject class in PHP is used to append a given value onto an ArrayObject. The value being appended can be a
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP-ArrayObject
Merge two arrays keeping original keys in PHP
Last Updated: 09 July 2024
Merging two arrays in PHP while preserving the original keys can be done using the array_merge or array_replace functions, depending on the
...read more
Technical Scripter
Web Technologies
PHP-array
Picked
PHP
Technical Scripter 2018
PHP list() Function
Last Updated: 20 June 2023
The list() function is an inbuilt function in PHP which is used to assign array values to multiple variables at a time. This function will o
...read more
Web Technologies
PHP-array
PHP
PHP usort() Function
Last Updated: 20 June 2023
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 new function us
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP shuffle() Function
Last Updated: 20 June 2023
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 function
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP | Imploding and Exploding
Last Updated: 08 March 2018
Imploding and Exploding are couple of important functions of PHP that can be applied on strings or arrays. PHP provides us with two importan
...read more
Web Technologies
PHP-string
PHP-array
PHP-function
PHP
PHP | array_column() Function
Last Updated: 29 September 2021
The array_column() is an inbuilt function in PHP and is used to return the values from a single column in the input array.Syntax:array array
...read more
Web Technologies
PHP-array
PHP | array_map() Function
Last Updated: 06 January 2018
The array_map() is an inbuilt function in PHP and it helps to modify all elements one or more arrays according to some user-defined conditio
...read more
Web Technologies
PHP-array
PHP array_count_values() Function
Last Updated: 20 June 2023
The array_count_values() is an inbuilt function in PHP which is used to count all the values inside an array. In other words we can say that
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP String Functions
Last Updated: 03 April 2025
Strings are a fundamental data type in PHP, used to store and manipulate text. PHP provides a wide variety of built-in string functions. The
...read more
C-String-Question
Functions
Web Technologies
PHP-array
PHP-function
PHP
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !