Which string will be returned by the following function call?

Posted by: Pdfprep Category: 200-710 Tags: , ,

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()
A . ""
B . "/wireless"
C . "wireless"
D . 11/conf.d/wireless"
E . "/etc"

Answer: B

Leave a Reply

Your email address will not be published.