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

Posted by Arlene on Jun 17, 2022 at 05:21 AM

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()

Suggested Answer: B

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
CA
Carolynn 1 year ago
It's B for sure, no doubt about it!
OL
Oliva 1 year ago
Wait, is it really '/wireless'? That seems off.
MI
Mirta 1 year ago
I thought it would just be 'wireless' without the slash.
DO
Domitila 1 year ago
Definitely '/wireless'!
MI
Milly 1 year ago
The function returns a substring starting from the last '/' character.
AS
Ashton 1 year 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.
MA
Margret 1 year 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?
RO
Roxanne 1 year 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.
RO
Ronny 1 year 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.
MA
Margart 1 year 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.
DI
Diane 1 year 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.
AL
Alaine 1 year ago
I'm pretty sure this is about internal controls for preventing fraud, so it's probably cash advances.
0/2000 characters

Save Cancel