Vidyalelo
PHP · Q83

Operators And Expressions

Programming · PHP · question 83

Q83

What will be the output of the following PHP code ?

A.
11
Answer
B.
12
C.
10
D.
error

Answer: Option A

Solution

Answer: Option A
Solution:
The + operator does union of arrays in that order, then the === operator compares key and value pairs.