U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 9 Question 51 Discussion

What will the following code print out?$str = '✔ one of the following';echo str_replace('✔', 'Check', $str);
B) one of the following
A) Check one of the following
C) ✔ one of the following

Zend 200-710 Exam - Topic 9 Question 51 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 51
Topic #: 9
[All 200-710 Questions]

What will the following code print out?

$str = '✔ one of the following';

echo str_replace('✔', 'Check', $str);

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
In
7 months ago
No way, I thought it would return the HTML entity!
upvoted 0 times
...
Tiera
7 months ago
Wait, is that a real character code?
upvoted 0 times
...
Lashaunda
8 months ago
I thought it would just show the original string.
upvoted 0 times
...
Jutta
8 months ago
Definitely A, that's the right answer!
upvoted 0 times
...
Emilio
8 months ago
It will print "Check one of the following".
upvoted 0 times
...
Kelvin
8 months ago
I’m a bit confused about the encoding. Does str_replace handle HTML entities like that? I might be leaning towards option C.
upvoted 0 times
...
Diane
8 months ago
This seems similar to a practice question we did on string replacement. I feel like it should definitely output "Check one of the following".
upvoted 0 times
...
Rodrigo
9 months ago
I'm not entirely sure, but I remember something about HTML entities. Could it be that it doesn't replace it correctly?
upvoted 0 times
...
Laila
9 months ago
I think the code replaces the checkmark with "Check", so it should print option A.
upvoted 0 times
...
Clorinda
9 months ago
I'm a bit confused by this question. It seems like there are a lot of different factors to consider, and I'm not sure which ones are the most important for the value proposition. I'll need to re-read the question and options carefully.
upvoted 0 times
...
Teri
9 months ago
I'm pretty confident I know the components of an elastic cloud server. Let me think this through.
upvoted 0 times
...
Ben
9 months ago
Hmm, I'm a bit confused. If the contribution margin is 12,000 and the overheads are 23,000, wouldn't closing the department decrease operating income by 12,000? I'm not sure about the 4,000 that can't be eliminated.
upvoted 0 times
...
Reid
9 months ago
I'm kind of confused about the substantial financial risk formula. I think it has to do with how much of the payments are contingent on costs, but I'm not sure about the exact percentages.
upvoted 0 times
...
Leonie
9 months ago
Hmm, I'm a bit confused. The question mentions preventing a user from permanently deleting private chats, but the solution talks about creating an In-Place Hold for the user's OneDrive for Business site. I'm not sure those two things are directly related.
upvoted 0 times
...
Oretha
1 year ago
Hmm, let me think about this... Ah, I got it! The answer is A) Check one of the following. The str_replace() function is doing its job correctly.
upvoted 0 times
...
Burma
1 year ago
Haha, this question is a piece of cake! The answer is clearly A) Check one of the following. I can't believe someone would mess up something this simple.
upvoted 0 times
Wava
1 year ago
The answer is A) Check one of the following for sure.
upvoted 0 times
...
Alona
1 year ago
I think it's A) Check one of the following too.
upvoted 0 times
...
Kenia
1 year ago
Yeah, that's an easy one. It's A) Check one of the following.
upvoted 0 times
...
Ozell
1 year ago
I agree, it's definitely A) Check one of the following.
upvoted 0 times
...
...
Alison
1 year ago
I'm not sure, but I think it will print A) Check one of the following as well.
upvoted 0 times
...
Rossana
1 year ago
I agree with Hyman, because the code is replacing '✔' with 'Check'.
upvoted 0 times
...
Hyman
1 year ago
I think it will print A) Check one of the following.
upvoted 0 times
...

Save Cancel