Factorial Program in PHP with example

Hi friends, in this tutorial, you will learn how to run the factorial program in PHP. I will explain the details in a step-by-step process. This is a very simple program and you will never forget it if you read this article once. Also, read the OOPs concept in PHP with real-time examples Steps to … Read more

PHP JSON to Array with Example

In this tutorial, you will learn how to decode PHP JSON to array with a detailed explanation. This is a very important feature often used in web development but before getting started, we must know about JSON as mentioned below What is JSON JSON is a javascript object notation and text-based format that is used … Read more

What is Constructor in PHP

Constructor in PHP is declared with __construct() function uing double underscore. When we define a class, we declare individual set methods to access the particular property of that class but if we initialize a constructor inside the parent class, then no need to include set methods. It helps us to reduce the number of set … Read more

OOPS concepts in PHP with realtime examples

OOPS means object-oriented programming. As we all know that object-oriented programming is better than procedural programming. In procedural programming, we can write functions that contain operations on data but in object-oriented programming, we can write functions that contain both data and objects. It is based on classes and objects. Let us discuss the oops concepts … Read more

Convert Numbers to Words in PHP

In this tutorial, we will not discuss step-by-step how to convert numbers to words in PHP. This feature is very important and plays a vital role in displaying the invoice amounts in the custom application software, billing software, etc. In this example, multiple functions have been used to display the converted result. Below I will … Read more

How To Display PDF File in PHP on Browser

In this tutorial, I will explain how to display PDF file in PHP on the browser. This is a very common requirement in the case of website development or any other web application. In order to do so, please follow the below example. Also read, Upload multiple files in PHP with example Before getting started, … Read more