nerdexam
Zend

200-530 · Question #85

Which string will be returned by the following function call? $test = '/etc/conf.d/wireless'; substr($test, strrpos($test, '/'));

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, '/'));

Options

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

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    77% (20)
  • C
    4% (1)
  • E
    12% (3)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice