A

Admin • 828.03K Points
Coach

Q. Which PHP function converts special characters to HTML entities?

  • (A) htmlspecialchars()
  • (B) htmlentities()
  • (C) encode()
  • (D) escape()
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
htmlspecialchars() converts special characters like < and > to HTML-safe entities.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.