nerdexam
Zend

200-530 · Question #188

What function should be used to escape command line arguments that are passed to commands executed from PHP?

The correct answer is C. escapeshellarg(). See the full explanation below for the reasoning.

Question

What function should be used to escape command line arguments that are passed to commands executed from PHP?

Options

  • Aaddslashes()
  • Bquotemeta()
  • Cescapeshellarg()
  • Descapeshellcmd()
  • Epassthru()

How the community answered

(56 responses)
  • A
    13% (7)
  • B
    2% (1)
  • C
    73% (41)
  • D
    4% (2)
  • E
    9% (5)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice