What is Array?
Arrays are collections of data elements with a common name. Arrays provide a framework for defining and accessing several data elements with a single identity, making data administration easier.
When dealing with several data elements, we use array.
How many types of Array?
- Numeric/Indexed Array:- In this array index will be represented by a number. By default numeric array index start from 0.
Example:-$num [0] = “ScmGalaxy”;
- Associative Array:- In this Array index/key will be represented by a string.
Example:-$fees [“ScmGalaxy”] = 500;
- Multidimensional Array:- Arrays of Arrays is known as multidimensional arrays.
Example:-$num [0] [0] = 25;
Some Array Operators are :-
Latest posts by Ashwani Kumar (see all)
- Top 10 DevOps Trainers in the world - October 7, 2023
- What is Cookies and Why it is Used? - May 24, 2023
- TOP trends of transitions in TikTok - May 10, 2023