Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 9 Question 61 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 61
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:

Jacinta
5 months ago
I remember reading that the return value is 1 if the first string comes after the second string in alphabetical order.
upvoted 0 times
...
Howard
5 months ago
I'm not sure, but I think it might be TRUE because the function returns a boolean value.
upvoted 0 times
...
Mitzie
6 months ago
I believe it is 0 because the substr_compare function returns 0 when the two strings are equal.
upvoted 0 times
...
Lavelle
6 months ago
I think the return value is -1.
upvoted 0 times
...
Jeanice
6 months ago
I see, I thought it would be 0 because the substrings are not equal, but I understand now.
upvoted 0 times
...
Stephanie
6 months ago
I chose -1 because the function returns 0 if the two substrings are equal, and a negative value if the first substring is less than the second one.
upvoted 0 times
...
Bethanie
7 months ago
I'm not sure, but I think it might be TRUE.
upvoted 0 times
...
Jeanice
7 months ago
I believe the return value is 0.
upvoted 0 times
...
Stephanie
7 months ago
I think the return value is -1.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77