MCQs > IT & Programming > PHP > Best method for sanitizing user input with PHP?

PHP MCQs

What is the best method for sanitizing user input with PHP?

Answer

Correct Answer: Whenever you embed a string within foreign code, you must escape it, according to the rules of that language. E.g. for MySQL, you will use mysql_real_escape_string, for HTML you will escape it with htmlspecialchars.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it