Category Archives: PHP

PHP – Arrays

PHP – Arrays Arrays are a type of data structure that allows you to store a number of elements having the same data type using a variable. By using an array the use of multiple variables for each value can be avoided. Arrays are easy to use and parse using an index value. You can easily handle when… Read More »

PHP – Loops

PHP – Loops Earlier we learned about conditional statements where we run some set of instructions for a particular satisfying condition but the set of code will be run only once. In case we want to loop the execution of the set of codes whenever a condition is true then we use loops. This loop will run until… Read More »

PHP – Operators

PHP – Operators Operators are used for performing various functions or operations on variables and values. PHP supports a number of operator types to get the desired output. Some of the operators are defined below- Arithmetic operators Logical operator Conditional operator Assignment operator Comparison operator 1. Arithmetic operators Arithmetic operators perform arithmetic operations on variables and on the… Read More »

PHP – Constants

PHP – Constants A constant is an identifier whose value keeps constant or does not change during the execution of your program. Unlike variables, these constants are mostly uppercase. It can be a combination of letters, numbers, and underscore but should always be started with a letter or underscore. Define function is used to create a constant, which… Read More »

PHP – Syntax

PHP – Syntax PHP is a programming language with many features that can easily be embedded in HTML. You can add the PHP code anywhere in the document either within the PHP tags or within the HTML. As you have now done with the configuration part, we can easily start with the concepts. Before we step ahead, we… Read More »

PHP – Installation

PHP Installation You can easily install PHP on different platforms with this tutorial in very easy steps. Installing PHP on Linux/UNIX If you are installing PHP on the Linux system then you should be prepared with- PHP source distribution, Apache source, PHP compatible database, C compiler, Gnu utility.  We are starting with installing Apache and PHP. First, unzip… Read More »

PHP – Environment Setup

Before getting started with learning PHP, we should prepare our system to make it work for PHP codes. To program and run your PHP code, you should install three basic components of PHP. PHP – Environment Setup Web server– there are a number of servers available, but we will consider the most commonly used open-source Apache server to… Read More »