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 20 Discussion

Posted by Tammara on May 06, 2022 at 09:56 PM

What will the following code piece print?

echo strtr('Apples and bananas', 'ae', 'ea')

Suggested Answer: A

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
CL
Claribel 1 year ago
I don't know, this seems off.
CL
Clare 1 year ago
No way, it's A for sure!
ZA
Zana 1 year ago
Wait, are you sure? I thought it would be C.
LE
Leontine 1 year ago
Definitely A!
CA
Candra 1 year ago
It will print "Applas end bananas".
LE
Leonida 1 year ago
I thought the replacements would mix things up more, but I can't recall if it affects the same letters in one go. Is it D?
KI
Kindra 1 year ago
I'm not entirely sure, but I remember a similar question where it swapped letters. Could it be option A?
AR
Armanda 1 year ago
I think the `strtr` function replaces characters, so it should change 'a' to 'e' and 'e' to 'a'.
CE
Cecil 1 year ago
I feel like the output will still have 'Apples and bananas' unchanged, so maybe it's C?
JE
Jeannine 1 year ago
Wait, I'm a bit confused. Doesn't the last configured router ID take precedence? If so, then the answer should be 10.10.10.66, right?
TR
Trinidad 1 year ago
I've got a good feeling about option A, getJobStatus. That seems like the most appropriate method name for checking the status of an asynchronous operation. I'll mark that one down.
0/2000 characters

Save Cancel