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
160 Days of DSA (Win T-Shirt!)
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 find the index of an element in an array using PHP ?
Last Updated: 26 August 2024
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 n-1. Here we have s
...read more
Web Technologies
PHP-array
PHP-function
Picked
PHP
PHP-Questions
Multidimensional Associative Array in PHP
Last Updated: 31 July 2021
PHP Multidimensional array is used to store an array in contrast to constant values. Associative array stores the data in the form of key an
...read more
Web Technologies
PHP-basics
PHP-array
Picked
PHP
PHP Programs
PHP Array Functions
Last Updated: 14 April 2025
Arrays are one of the fundamental data structures in PHP. They are widely used to store multiple values in a single variable and can store d
...read more
Web Technologies
PHP-array
PHP
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
Multidimensional arrays in PHP
Last Updated: 20 September 2024
Multi-dimensional arrays in PHP are arrays that store other arrays as their elements. Each dimension adds complexity, requiring multiple ind
...read more
Technical Scripter
Web Technologies
PHP-array
Picked
PHP
PHP Programs
Associative Arrays in PHP
Last Updated: 31 July 2021
Associative arrays are used to store key value pairs. For example, to store the marks of different subject of a student in an array, a numer
...read more
Web Technologies
PHP-array
Picked
PHP
Removing Array Element and Re-Indexing in PHP
Last Updated: 22 March 2025
In order to remove an element from an array, we can use unset() function which removes the element from an array, and then use array_values(
...read more
Technical Scripter
Web Technologies
PHP-array
Picked
PHP
Technical Scripter 2018
PHP append one array to another
Last Updated: 03 November 2018
Given two array arr1 and arr2 and the task is to append one array to another array.Examples:Input : arr1 = [ 1, 2 ] arr2 = [ 3, 4 ]Ou
...read more
Technical Scripter
Web Technologies
PHP-array
Picked
PHP
PHP Programs
Technical Scripter 2018
PHP in_array() Function
Last Updated: 05 September 2024
The in_array() function is an inbuilt function in PHP that is used to check whether a given value exists in an array or not. It returns TRUE
...read more
Web Technologies
PHP-array
PHP
PHP end() Function
Last Updated: 16 September 2024
The end() function is an inbuilt function in PHP and is used to find the last element of the given array. The end() function changes the int
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP array_unique() Function
Last Updated: 16 September 2024
The PHP array_unique() function removes duplicate values from an array, preserving the first occurrence of each value and reindexing the arr
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP Merging two or more arrays using array_merge()
Last Updated: 24 September 2024
The array_merge() function in PHP combines two or more arrays into one. It merges the values from the arrays in the order they are passed. I
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP array_sum() Function
Last Updated: 19 September 2024
The array_sum() function in PHP is used to calculate the sum of values in an array. It works with both indexed and associative arrays and ca
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP array_search() Function
Last Updated: 12 September 2024
The PHP array_search() function searches an array for a specific value and returns the first corresponding key if found. It performs a loose
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP array_key_exists() Function
Last Updated: 19 September 2024
The array_key_exists() function in PHP is a built-in function that checks whether a specified key exists in an array. This function is commo
...read more
Web Technologies
PHP-array
PHP-function
PHP
PHP Arrays
Last Updated: 12 April 2025
Arrays are one of the most important data structures in PHP. They allow you to store multiple values in a single variable. PHP arrays can ho
...read more
Web Technologies
PHP-basics
PHP-array
PHP
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
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 !