PdfPrep.com

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

Answer: B

Exit mobile version