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.