In PHP, the three types of arrays are indexed, associative, and ______.

  • Sequential
  • Multidimensional
  • Consecutive
  • Nested
In PHP, the three types of arrays are indexed, associative, and multidimensional. Indexed arrays are accessed using numerical indices, starting from zero. Associative arrays use key-value pairs, where the keys are user-defined and used to access the corresponding values. Multidimensional arrays, also known as nested arrays, are arrays that contain other arrays as elements, allowing for the creation of complex data structures. Learn more: https://www.php.net/manual/en/language.types.array.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *