Vidyalelo
PHP · Q40

Operators And Expressions

Programming · PHP · question 40

Q40

What will be the output of the following PHP code ?

A.
test
B.
testtest
C.
testvalue
Answer
D.
error, constant value cannot be changed

Answer: Option C

Solution

Answer: Option C
Solution:
${VAR_NAME} creates a new variable which is not same as VAR_NAME.