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)- A13% (7)
- B2% (1)
- C73% (41)
- D4% (2)
- E9% (5)
Community Discussion
No community discussion yet for this question.