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

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

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

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Moon
5 months ago
I thought substr_compare returned TRUE for matches.
upvoted 0 times
...
Minna
5 months ago
Nope, definitely 0!
upvoted 0 times
...
Glenna
5 months ago
Wait, are you sure? I thought it might be -1.
upvoted 0 times
...
Loise
5 months ago
Totally agree, it's 0!
upvoted 0 times
...
Mona
5 months ago
The return value is 0.
upvoted 0 times
...
Maybelle
6 months ago
If I remember correctly, since "bar" starts at position 3 in "foobar", it should return 0 because they match.
upvoted 0 times
...
Carmen
6 months ago
I feel like it could be -1 or 1 depending on the comparison, but I can't recall the exact details.
upvoted 0 times
...
Miss
6 months ago
I remember practicing a similar question, and I think it returns 0 when the substrings match exactly.
upvoted 0 times
...
Lashaun
6 months ago
I think the function compares substrings, but I'm not sure what the starting position affects.
upvoted 0 times
...
Kristofer
6 months ago
Okay, let's see - placement, layering, and integration are the main stages, so I'll check those options.
upvoted 0 times
...
Lawrence
6 months 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.
upvoted 0 times
...
Tess
6 months 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.
upvoted 0 times
...

Save Cancel