Interview Questions

What is the functionality of the function htmlentities?

PHP Interview Questions and Answers


(Continued from previous question...)

What is the functionality of the function htmlentities?

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.

(Continued on next question...)

Other Interview Questions