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 6 Question 31 Discussion

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

Which string will be returned by the following function call?

$test = '/etc/conf.d/wireless';

substr($test, strrpos($test, '/')); // note that strrpos() is being called, and not strpos()

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Carolynn
5 months ago
It's B for sure, no doubt about it!
upvoted 0 times
...
Oliva
5 months ago
Wait, is it really '/wireless'? That seems off.
upvoted 0 times
...
Mirta
5 months ago
I thought it would just be 'wireless' without the slash.
upvoted 0 times
...
Domitila
5 months ago
Definitely '/wireless'!
upvoted 0 times
...
Milly
5 months ago
The function returns a substring starting from the last '/' character.
upvoted 0 times
...
Ashton
6 months ago
I believe it should return '/wireless' since that's the part after the last slash, but I could be wrong about how substr handles the position.
upvoted 0 times
...
Margret
6 months ago
I’m a bit confused. If strrpos gives the position of the last slash, does substr start from that position or the next character?
upvoted 0 times
...
Roxanne
6 months ago
I think the function is supposed to return the substring starting from the last slash, but I'm not entirely sure how substr works with the position returned by strrpos.
upvoted 0 times
...
Ronny
6 months ago
I remember practicing a similar question where we had to extract parts of a file path. I think it was about getting the last part after the last slash.
upvoted 0 times
...
Margart
6 months ago
Hmm, I'm a little confused. The question mentions removing field-level access from three profiles in the sandbox, but it's not clear which ones. I'll need to double-check that before deciding on the best approach.
upvoted 0 times
...
Diane
6 months ago
Hmm, I'm a little unsure about this one. The question is asking about a specific type of incentive calculation, but the answer choices don't seem to clearly match the description. I'll need to think this through more carefully.
upvoted 0 times
...
Alaine
6 months ago
I'm pretty sure this is about internal controls for preventing fraud, so it's probably cash advances.
upvoted 0 times
...

Save Cancel