PHP Functions

A function is a block of code that can perform a specific task when called. PHP provides two major types of functions: built-in and user-defined. They are useful as they help in carrying out repetitive tasks without repeating the code. In this article, we will discuss Functions in PHP. Also, we will discuss various examples… Read more PHP Functions

PHP htmlspecialchars | Convert Special Chars to HTML Entities

In HTML, certain characters have a special significance. They should be represented as HTML entities so as to preserve their meaning. PHP htmlspecialchars is an inbuilt function in PHP that converts certain special characters to HTML entities. In this article, we will discuss the PHP htmlspecialchars function. Also, we will discuss a few examples of… Read more PHP htmlspecialchars | Convert Special Chars to HTML Entities

PHP htmlspecialchars_decode | HTML Entities to Characters

PHP htmlspecialchars_decode is an inbuilt function in PHP. It converts HTML Entities back to plain text characters. In this article, we will discuss the PHP htmlspecialchars_decode function. Also, we will discuss a few examples of using it. This function is the opposite of htmlspecialchars function. You can encode characters to HTML entities using htmlspecialchars function.… Read more PHP htmlspecialchars_decode | HTML Entities to Characters