Php Objective Questions with Answers for written test exams 54

Question 54
What is the purpose of the escapeshellarg() function?

A. To prepare data so that it can be used as a single argument in a shell command.

B. To remove malicious characters.

C. To escape metacharacters, so that they can’t be used to execute arbitrary

commands.

D To remove arguments from a shell command
Answers 54


Answer A is correct. Answers B and D are incorrect because escapeshellarg()

does not remove characters. Answer C is incorrect because escapeshellarg()

does not attempt to solve this problem.

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---