Zend
200-710 · Question #20
What is the output of the following code? $first = "second"; $second = "first"; echo $$$first;
The correct answer is B. "second". See the full explanation below for the reasoning.
PHP Basics
Question
What is the output of the following code?
$first = "second";
$second = "first";
echo $$$first;
Options
- A"first"
- B"second"
- Can empty string
- Dan error
How the community answered
(25 responses)- A4% (1)
- B84% (21)
- C8% (2)
- D4% (1)
Topics
#variable variables#dynamic variables#variable indirection#$$
Community Discussion
No community discussion yet for this question.