Vidyalelo
PHP · Q12

Arrays

Programming · PHP · question 12

Q12

What will be the output of the following PHP code?

A.
Array ( Peter Ben Joe )
B.
Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )
C.
Array ( 35 37 43 )
D.
Array ( [35] => Peter [37] => Ben [43] => Joe )
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
Here “keys” array is fname.