Q. Which PHP function escapes shell arguments?

  • (A) shell_escape()
  • (B) escapeshellarg()
  • (C) escape_shell()
  • (D) shellsafe()
πŸ’¬ Discuss
βœ… Correct Answer: (B) escapeshellarg()
Explanation: escapeshellarg() prevents shell command injection.
Explanation by: Mr. Dubey
escapeshellarg() prevents shell command injection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
41
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate