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 9 Question 34 Discussion

Posted by Fernanda on Aug 02, 2022 at 08:21 PM

What is the return value of the following code: substr_compare("foobar", "bar", 3);

Suggested Answer: D

Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
MO
Moon 1 year ago
I thought substr_compare returned TRUE for matches.
MI
Minna 1 year ago
Nope, definitely 0!
GL
Glenna 1 year ago
Wait, are you sure? I thought it might be -1.
LO
Loise 1 year ago
Totally agree, it's 0!
MO
Mona 1 year ago
The return value is 0.
MA
Maybelle 1 year ago
If I remember correctly, since "bar" starts at position 3 in "foobar", it should return 0 because they match.
CA
Carmen 1 year ago
I feel like it could be -1 or 1 depending on the comparison, but I can't recall the exact details.
MI
Miss 1 year ago
I remember practicing a similar question, and I think it returns 0 when the substrings match exactly.
LA
Lashaun 1 year ago
I think the function compares substrings, but I'm not sure what the starting position affects.
KR
Kristofer 1 year ago
Okay, let's see - placement, layering, and integration are the main stages, so I'll check those options.
LA
Lawrence 1 year ago
Ah, I think I've seen this kind of issue before. Recreating the guestshell might be the way to go, but I'll double-check the other options just to be sure.
TE
Tess 1 year ago
I'm not entirely sure about this one. The question mentions tracking the cost of equipment usage, so I'm wondering if Usages might be the right expenditure type class. I'll need to think this through a bit more.
0/2000 characters

Save Cancel