Skip to content

Tag Archives: PHP-function

Constructors are special member functions for initial settings of newly created object instances from a class.  In PHP, a constructor is a method named __construct(),… Read More
We will use some file operations to read a large file line by line and display it. Read a file: We will read the file… Read More
The task is to create and design a sign-up and login form. In the sign-up form, the user will sign-up with a custom username and… Read More
In this article, we are going to discuss how to integrate Google reCAPTCHA v2 in PHP. Approach: Register your site at Google reCAPTCHA Submit HTML… Read More
In this article, we will learn how to generate PDF files from external text files with PHP by using FPDF. It is a free PHP… Read More
PHP introduced an alternative of switch-case in the release of the 8th version. In the release of the 8th version of PHP, the match() function… Read More
In this article, we will learn how to generate PDF files with PHP by using FPDF. It is a free PHP class that contains many… Read More
In this article, we will learn to add elements to an existing array with the click of a button using PHP. PHP is a server-side… Read More
PHP stands for Hypertext Preprocessor, it is a popular general-purpose scripting language that is mostly used in web development. It is fast, flexible, and pragmatic… Read More
Through HTML forms various data can be collected from the user and can be sent directly to the server through PHP scripting. There are basically… Read More
In this article, we are going to learn how to check that a given string is starting or ending with a given specific string in… Read More
You can reset array values or clear the values very easily in PHP. There are two methods to reset the array which are discussed further… Read More
Geolocation refers to the identification of the geographical location of a user or computer device.  In this article, we will create a web page where… Read More
We can easily create a folder in PHP, but before that, you have to check if the folder or directory already exists or not. So… Read More
The task is to convert DateTime to String using PHP. There are two ways to convert it.   1. By using Format method  In the… Read More

Start Your Coding Journey Now!