Creating Classes in PHP

This article explains Creating Classes in PHP. Basically, a class is like a template or a blueprint for an object. In other words, a class describes an object. While objects are things that have certain features in terms of attributes and behavior. The class represents the attributes and behavior of objects and the objects are …

Inheritance in PHP

In this article, I will explain the Inheritance in PHP. The objects relate to each other in many ways. For instance, an object may be a special kind of another object. In other words, the object is the special case of some generalized object. For example, a Course object can have attributes like course title, …

Anonymous Functions in PHP

In this article, I will explain how to create Anonymous Functions in PHP. Anonymous functions are those functions that we create without a name. In fact, we can use anonymous functions in a number of places. For instance, suppose we need to pass a function as a parameter to another function. In such a case, …

HTML Form Processing in PHP

In this article on HTML Form Processing in PHP, I will explain how to process the Form data in PHP. Since, the HTML forms serve as means for gathering data from user, form processing is significant in any web application that allows users to interact. The following example explains how to retrieve user input from …

Array Examples in PHP

The following list provides a few Array Examples in PHP. Create an Indexed array and display its elements using both for loop as well as foreach loop. When do we use associative array rather than an indexed array? Create a program to demonstrate how to create an associative array. Find the sum of elements of …

Installing WAMP Server

This article on Installing WAMP Server provides instructions on installing WAMP server on Windows. Step By Step Instructions on Installing WAMP Server on Windows To begin with, first of all download the WAMP Server from its website. According to the configuration of your PC, you can either choose 64 BITS download or 32 BITS download. …

Understanding PHP Syntax

In this article on Understanding PHP Syntax, I will explain how to write simple programs in PHP. Also, you will learn how to create variables in PHP, data types, operators, and expressions. A Simple Program for Understanding PHP Syntax The following code shows a simple program to display text in PHP. Output The above code …

Control Statements in PHP

In this article on Control Statements in PHP, I will cover conditional control statements and iteration control statements. Understanding Control Statements in PHP In fact, a control statement in a programming language alters the normal sequence of execution of statements in a program. Normally, a language compiler executes the statements of a program in the …

Brief Introduction to PHP

In this article on Brief Introduction to PHP, I discuss the features and drawbacks of using PHP. Introduction to PHP Programming In fact, PHP is a web-based programming language. PHP stands for hypertext preprocessing. Furthermore, we use PHP to create dynamic web applications. Although, PHP is easy to learn and use, it gives us all …