nerdexam
Zend

200-710 · Question #196

Which elements does the array returned by the function pathinfo() contain?

The correct answer is C. dirname, basename, extension. See the full explanation below for the reasoning.

I/O

Question

Which elements does the array returned by the function pathinfo() contain?

Options

  • Aroot, dir, file
  • Bdirname, filename, fileextension
  • Cdirname, basename, extension
  • Dpath, file

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    82% (23)
  • D
    11% (3)

Topics

#pathinfo#file path parsing#dirname#basename

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice