In PHP, a multidimensional array can only contain indexed arrays.

  • TRUE
  • FALSE
False. In PHP, a multidimensional array can contain both indexed arrays and associative arrays as its elements. While indexed arrays are commonly used in multidimensional arrays, associative arrays can also be used to create multidimensional structures. This flexibility allows for the representation of complex data relationships, where values can be accessed using either numeric indices or string keys. Multidimensional arrays in PHP provide a versatile way to organize and manipulate data in a structured manner. Learn more: https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax
Add your answer
Loading...

Leave a comment

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