What is the output of the following code: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 10

What is the output of the following code:

$a = '1'; $b = &$a; $b = "2$b"; echo $a.", ".$b;

7th Jul 2017, 4:29 PM
Sarath Kumar
Sarath Kumar - avatar
4 Answers
+ 3
21, 21
18th Jul 2017, 6:19 PM
prachi
+ 3
21,21
26th Jul 2017, 4:50 PM
darco
darco - avatar
+ 2
21, 21
7th Jul 2017, 5:01 PM
AgentSmith
+ 1
21,21
1st Jan 2020, 6:57 AM
Arjun Singhal
Arjun Singhal - avatar