advanced string function

mcqspedia.com has 3 Question/Answers about Topic advanced string function

Htmlspecialchars ( ) function takes a string as argument and returns string in which form, that has a special meaning in HTML

Htmlspecialchars ( ) function takes a string as argument and returns string in which form, that has a special meaning in HTML
  • A. Replaces a string with four characters
  • B. Replaces a string in integers
  • C. Replaces a string with quotation marks
  • D. None of them
  • Correct Answer: Option A

Which function is used to take a string as argument and returns a string that is stripped of all HTML and PHP tags?

Which function is used to take a string as argument and returns a string that is stripped of all HTML and PHP tags?
  • A. nl2br ( )
  • B. strip ( )
  • C. strip_tags ( )
  • D. All of them
  • Correct Answer: Option C

Which of them is a HTML specific string function?

Which of them is a HTML specific string function?
  • A. htmlentities ( )
  • B. nl2br ( )
  • C. strip_tags ( )
  • D. All of them
  • Correct Answer: Option D