nerdexam
Zend

200-710 · Question #210

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

The correct answer is B. "/wireless". See the full explanation below for the reasoning.

Question

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

Options

  • A""
  • B"/wireless"
  • C"wireless"
  • D"/conf.d/wireless"
  • E"/etc"

How the community answered

(38 responses)
  • A
    13% (5)
  • B
    74% (28)
  • C
    8% (3)
  • D
    3% (1)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice