English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Explain Array concepts and their types. - Computer Applications

Advertisements
Advertisements

Question

Explain Array concepts and their types.

Answer in Brief

Solution

Array is a concept that stores more than one value of same data type (homogeneous) in a single array variable. They are 3 types of array concepts in PHP.

  • Indexed Arrays:
    Arrays with a numeric index for the available values in array variable which contains key value pair as user/developer can take the values using keys.
  • Associative Arrays:
  1. Associative arrays are a key-value pair data structure.
  2. Instead of having storing data in a linear array, with associative arrays you can store your data in a collection and assign it a unique key which you may use for referencing your data.
  • Multidimensional Arrays
  1. A multidimensional array is an array containing one or more arrays.
  2. PHP understands multidimensional arrays that are two, three, four, five, or more levels deep.
  3. However, arrays more than three levels deep are hard to manage for most people.
shaalaa.com
Array in PHP
  Is there an error in this question or solution?
Chapter 5: PHP Function and Array - Evaluation - PART – IV [Page 104]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 5 PHP Function and Array
Evaluation - PART – IV | Q 4. | Page 104
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×