Associative arrays in PHP use numeric keys.
- TRUE
- FALSE
False. In PHP, associative arrays use user-defined keys, which can be strings or numbers, instead of numeric keys. These keys are used to access the corresponding values in the array. Associative arrays provide a way to associate values with specific keys for easier retrieval and manipulation. The keys can be used to access the values in a non-sequential manner. Learn more: https://www.php.net/manual/en/language.types.array.php
Loading...
Related Quiz
- The preg_match() function in PHP returns true if the pattern was found in the string and false otherwise.
- What is the function func_num_args() used for?
- Which of the following are true about the break and continue statements in PHP?
- You have installed PHP on your local machine, but your PHP script isn't running. What could be potential reasons for this?
- What is the purpose of the array_merge() function in PHP?