Sr. PHP Programmer Question:

What is the use of the function htmlentities?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

htmlentities Convert all applicable characters to HTML entities This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.


Previous QuestionNext Question
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?What is the difference between $_GET and $_POST?