The keys in a PHP associative array can be both strings and integers.

  • TRUE
  • FALSE
True. In a PHP associative array, the keys can be both strings and integers. You can explicitly assign either string or integer keys to the elements of an associative array. This flexibility allows you to associate specific values with meaningful labels or identifiers. You can access the corresponding values in the array using the associated keys. Associative arrays are widely used in PHP for organizing and retrieving data in a non-sequential 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 *