You can use numerical keys in an associative array in PHP.
- TRUE
- FALSE
True. In a PHP associative array, you can use numerical keys, along with string keys, to associate specific values. While string keys are commonly used for associative arrays, numerical keys can also be employed when they are suitable for organizing and accessing the elements in the array. The keys in an associative array provide flexibility in data retrieval and allow for a variety of use cases in PHP programming. Learn more: https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax
Loading...
Related Quiz
- The min() function in PHP returns the ______ value from a list of numbers.
- What happens if the condition in a PHP for loop is never false?
- Which of the following are common uses of break and continue in PHP loops?
- In PHP, what is the purpose of the $this keyword?
- You have a PHP script and you are getting an error when trying to send an email. How would you troubleshoot this issue using mail functions?