The keys in a PHP indexed array are always strings.

  • TRUE
  • FALSE
False. In PHP, the keys in an indexed array are not always strings. Indexed arrays use numeric keys that are automatically assigned, starting from 0. These keys are integers and not strings. The numeric keys allow for easy access and manipulation of array elements based on their position within the array. 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 *