fbpx
29 C
Lahore

PHP: Array Version of htmlspecialchars() function

Must read

Ayyaz Zafarhttps://www.ayyaztech.com
I am Full Stack Web Developer with 10 years of professional Experience. I have following Skills: HTML5, CSS3, Javascript, jQuery, Ajax, PHP, MySQL, jQuery, Angular, React.js, Wordpress, Codeigniter, Laravel, Node.js, Mongo DB, Express.js, GraphQL, Typescript, Apollo and many more..

htmlspecialchars() function should be used for security reason to echo values from any variable.

But htmlspecialchars() doe’s not work for arrays so following function would help to escape html characters from array values:

- Advertisement -spot_img

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article