In PHP, an associative array is an array with ______ keys.

  • Numeric
  • String
  • Boolean
  • Null
In PHP, an associative array is an array with string keys. Unlike indexed arrays, which use numeric keys, associative arrays use string keys to associate specific values with identifiers. The string keys allow for non-sequential access and retrieval of elements based on their associated labels or identifiers. Associative arrays are useful when you want to organize data in a meaningful and descriptive way. 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 *