Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 5 Question 104 Discussion

Posted by Jin on May 13, 2026 at 12:18 AM

What is the output of the following code?

echo "22" + "0.2", 23 . 1;

Suggested Answer: B

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
28 comments · newest first
JE
Jenelle 2 days ago
I lean towards A) 220.2231.
DE
Denny 7 days ago
I feel confused about the output.
DO
Dorsey 12 days ago
The first part adds numbers, second part concatenates.
AN
Andree 17 days ago
Why B?
DO
Dorsey 22 days ago
I think it's B) 22.2231.
VI
Vince 28 days ago
I’m not so sure about that, seems too straightforward.
PA
Paola 1 month ago
Definitely not D) 56.2, that's way off!
EM
Emilio 1 month ago
Wait, is that really how PHP handles strings?
ER
Erin 1 month ago
I think it's B) 22.2231.
MI
Miesha 2 months ago
The first part adds numbers, so it's 22.2.
AM
Amalia 2 months ago
I disagree, it's not that simple.
RI
Rikki 2 months ago
Definitely A) 220.2231, no doubt!
MA
Marta 2 months ago
Wait, are we sure about that? Sounds off.
TA
Taryn 2 months ago
I think it's actually B) 22.2231.
CA
Carey 2 months ago
It's 22.2,231 for sure!
HO
Hoa 3 months ago
Definitely not C) 22.2,231.
LO
Loise 3 months ago
No way, it can't be that simple!
JO
Joseph 3 months ago
Wait, how does that even work?
LE
Leonora 3 months ago
Totally agree with that!
FE
Felix 3 months ago
It's B) 22.2231, right?
ST
Stephania 4 months ago
I’m confused about how PHP handles types here. I thought it would be 22.2,231, but that doesn’t seem right now.
MO
Mozell 4 months ago
I feel like the output could be 220.2231 if it treats the first part as a string concatenation instead of addition.
TO
Toi 4 months ago
I remember something similar from practice where string concatenation was involved. I think it might be 22.2231, but I could be wrong.
IL
Ilene 4 months ago
I think the first part is adding "22" and "0.2", which might give us 22.2, but I'm not sure about the second part.
DA
Dahlia 4 months ago
I feel like I practiced this kind of question before, but I can't recall the exact rules for type juggling in PHP.
CH
Charlette 4 months ago
I'm a bit confused about how PHP handles strings and numbers. Is it possible for the output to be 220.2231?
ME
Merri 5 months ago
I remember something similar where concatenation and addition were mixed. Could it be option B?
GR
Graciela 6 months ago
I think the first part is adding the numbers, so it might be 22.2? But I'm not sure about the second part.
0/2000 characters

Save Cancel