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, duration, and credits. While the […]

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, first, we create an anonymous […]

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 an HTML form and display […]

Examples of Built-in Functions of Arrays in PHP

In this article on the Examples of Built-in Functions of Arrays in PHP, I will explain various built-in array functions in PHP using code examples. The Following Section Provides Some Examples of Built-in Functions of Arrays in PHP array_chunk() In order to split an array into chunks of the specified size, we use this function. Basically, this function takes an […]

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 a one-dimensional array. Linear Search […]

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. Once, you download it, double […]

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 shows the specified text on […]

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 order in which the statements […]

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 features to create a dynamic […]

Important Concepts in NodeJS

The following list provides some of the Important Concepts in NodeJS that every programmer should know. Modules in NodeJS NodeJS File System Events Node Package Manager (NPM) Callbacks Asynchronous I/O (Non-Blocking I/O) Promises Prototypes Brief Introduction of Important Concepts in NodeJS The following section provides a brief introduction of the above-mentioned concepts. Modules In fact, NodeJS offers lots of built-in […]