PHP Tutorial

PHP Tutorial for beginners to learn PHP online for free.

PHP is a server-side programming language that is used to develop dynamic websites. PHP is free to use and easy to learn. This PHP tutorial is well crafted for beginners as well as professionals.

Today, PHP is the most used programming language for web development. As per W3Techs, PHP is used by more than 80% of all top websites.

Our PHP Tutorials covers PHP basics & advanced concepts with examples. “Tutorials Class” provides you PHP tutorials, exercises, codes, articles, and interview questions all at one place.

What are you waiting for? Learn PHP programming step by step here.

PHP Introduction

What is PHP? PHP is most popular language for web development. In this PHP Tutorial, you will learn about PHP Uses, Features and Future Scope.

PHP Terminology

PHP programming, involve different terms, tools and related technologies for web development. Learn briefly about common PHP Terminology.

PHP Installation

Learn PHP Installation Step by Step using XAMPP (PHP – MySQL – Apache) in Windows. Click for PHP Installation tutorial for beginners

PHP Syntax

Learn PHP Syntax with an example – Create your first PHP basic program and Learn how to Run first PHP Script – Free Tutorials available at Tutorials Class

PHP Comments

PHP Comments Tutorial – PHP Comment is simply description about the PHP script or code. Learn Single Line & Multiple Line Comments syntax with example

PHP Variables

PHP Variables store a value that can change during the program execution. Learn more about PHP Variables & Variable Rules with example in this tutorial.

PHP Operators

PHP Operators are used to performing operations on variables and values. Learn more about PHP Operators with Examples. Find programs & assignments related to PHP Operators.

PHP Data Types

PHP Data types is a set of values and the allowable operations on those values. PHP supports eight primitive types. Learn about different PHP data types with examples.

PHP Decision Making

PHP decision statements are used to make a decision, based on some conditions. Learn PHP IF ELSE & Switch Statements with examples

PHP Loops

PHP Loops are used to execute the same block of code again and again until a certain condition is met. Learn more about While, Do-While, For and Foreach Loops in PHP with examples

PHP Functions

PHP Functions can be seen as ‘block of code’ or ‘set of statements’ that perform some tasks when executed. A function usually takes some input arguments, perform some action on them and…

PHP Constants

A PHP constant is a name or an identifier for a simple value. A constant value cannot change during the execution of the script. Rules About Constant By default, a constant is…

PHP Errors

PHP throws a different type of errors if something inappropriate happens during the program execution. It could be because of wrong syntax or many other reasons. By default, PHP handles errors in…

PHP Arrays

PHP Array stores one or more similar type of values in a single value. Learn about Numeric, Associative and Multidimensional arrays with an example

PHP Array Functions

PHP Array Functions allow you to access and manipulate arrays. Simple and multi-dimensional arrays are supported. Some Important Functions of PHP Arrays are listed below: array() Returns an array of the parameters….

PHP String Handling

PHP String A string is a sequence of characters, like “Hello PHP!”. Run : PHP String Functions Get The Length of a String using strlen() Function The PHP strlen() function returns the length of a…

PHP Advanced

As you have learned the basic concepts of PHP, we will now move towards PHP advanced concepts. This will include PHP Files, Forms, Session, and Cookies and database interaction in later chapters….

PHP Forms Handling

Forms are used to collect data from users. PHP is capable to capture data submitted by users via HTML Forms. HTML forms are a combination of buttons, checkboxes, and text input fields…

PHP File Upload

Learn PHP File Upload with example. In this tutorial, we will upload files to server using HTML Form & PHP $_FILES variable & move_uploaded_file() function.

PHP File Handling

PHP File Handling PHP File handling is an important part of any web application. You often need to open and process a file for different tasks. Opening a File Reading a File…

PHP Send Mail

In web application, it is common to send email messages. Almost every website has some query form or contact form where user fill form & form data will be sent in email…

PHP File Inclusion

File Inclusion using require() and include() You can include the content of one PHP file into another PHP file before the server executes it. PHP has include() and require() statement takes all…

PHP Date and Time

PHP makes it easy to work with date and time using built-in PHP date(), time(), mktime(), and strtotime() functions. When you need a particular date and time format, PHP date() is the…

PHP Cookies

Cookies are small piece of data stored on the client browser. More about PHP Cookies: Unlike normal variables, cookies data can be maintained for long time in browser, even after you close…

PHP Session

PHP session has the ability to store information on the server that can be accessed across multiple PHP pages. In PHP, There are three common methods to pass data from any page…

PHP OOP Introduction

What is oops? Object-oriented programming (OOP) is a programming pattern based on the concept of “objects”. Objects can be referred as data structures that contain data, in the form of fields, often…

PHP Class

What is Class in PHP? A class is a collection of variables and functions working with these variables. Variables are defined by var and functions by function. Syntax of PHP Class Basic…

Objects In PHP

Objects Object is an instance of your class without object there no use of class.If we have class then we need to create object of the class to solve our problem using…

PHP MySQL Tutorial

PHP and MySQL are widely used together to create web applications. In the next few chapters, you will learn about PHP functions to connect with database. You will be able to insert,…

PHP : MySQL Database

What is MySQL? MySQL is the most popular Relational Database Management System. It is open-source and free to use. It is developed and supported by Oracle Corporation. Many of the world’s largest…

PHP : MySQL Connect

First, we need to make connection between PHP & MySQL Server. Then, PHP will be able to interact with MySQL database and access data. PHP-MySQL connection using MySQLi functions: MySQLi stands for…

PHP : MySQL Create Database

The “CREATE DATABASE db_name” command is used to create a database in MySQL. To learn more about PHP & MySQL database, we will create a Database. Later we will use it to…

PHP : MySQL Create Table

Data is stored in the form of tables in the database. A table has its own unique name and consists of rows and columns. Syntax: CREATE TABLE table_name (column_name column_type); Create Table…

PHP : MySQL INSERT Statement

The MySQL INSERT INTO statement is used to insert new records in a database table. Syntax The INSERT INTO command is used to insert data in MySQL table. Following is the syntax:INSERT INTO table_name ( field1, field2,…fieldN )VALUES ( value1, value2,…valueN );…

PHP : MySQL Select Data

The MySQL SELECT statement is used to select data from database tables. Process of Data Fetching/Retrieving: Create Database connection using mysqli_connect() Use mysqli_query() to perform a select query on database mysqli_query() returns…

PHP : MySQL UPDATE Statement

The MySQL Update statement is used to update existing records in a database table. We can modify the records based on some conditions. Syntax: The following is the generic syntax of the…

PHP : MySQL DELETE Statement

The MySQL DELETE statement is used to delete existing records from a database table. We can delete records based on some conditions. Syntax: The following is the generic syntax of the DELETE…