PrepAway - Latest Free Exam Questions & Answers

Which string will be returned by the following function call?

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

PrepAway - Latest Free Exam Questions & Answers

A.
“”

B.
“/wireless”

C.
“wireless”

D.
“/conf.d/wireless”

E.
“/etc”

One Comment on “Which string will be returned by the following function call?


Leave a Reply

Your email address will not be published. Required fields are marked *