An array that has named indexes instead of numeric is called a(n) ________ array.
- Associative Array
- Indexed Array
- Numeric Array
- Sequential Array
An array with named indexes is known as an Associative Array. In PHP, you can use strings as keys to access values in the array, making it very flexible.
Loading...
Related Quiz
- You have a while loop in your PHP script that is not terminating as expected. What could be the possible reasons and how would you debug this?
- You are building a profile page where users can upload their profile pictures. Which PHP function would you use to ensure the uploaded file is an image type?
- You can access a constant of a PHP class using the class name followed by the scope resolution operator (::) and the constant name like ClassName::CONSTANT_NAME.
- What is an array in PHP?
- You are working on a PHP script and need to open a file, read its contents, and then close it. What steps would you take?