Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

Tell me what is the use of the function htmlentities?

Junior PHP Developer Interview Question
Junior PHP Developer 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.

Download Junior PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain what does $_SERVER means?Explain me what is the use of header() function in php?