Q. Which PHP function escapes shell arguments?
β
Correct Answer: (B)
escapeshellarg()
Explanation: escapeshellarg() prevents shell command injection.