Arrays can have associative indices in PHP.
A. True
B. False
Answer: Option A
Solution (By Examveda Team)
This question is about arrays in PHP.Arrays are used to store multiple values in a single variable.
In PHP, arrays can have two types of indices:
1. Numeric indices: These are numbers starting from 0. For example, in an array with 3 elements, the indices would be 0, 1, and 2.
2. Associative indices: These are strings that you use to identify each element in the array. Instead of numbers, you use words or phrases as keys.
For example:
```php $person = array( "name" => "Alice", "age" => 30, "city" => "New York" ); ```
In this case, the indices are "name", "age", and "city", and the corresponding values are "Alice", 30, and "New York".
So, the answer to the question is Option A: True.
Arrays can have associative indices in PHP.
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network
Join The Discussion