To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you also consent to allowing this site to collect anonymised information about your visit. For more information or to opt-out of analytics, read this page.

PHP tutorial

Part 1 - An introduction

PartName
1.1
This article of the PHP tutorial is simply an introduction.

Part 2 - Getting started

PartName
2.1
This article in my tutorial on PHP covers the basics of PHP.
2.2
This article shows you how to write comments in PHP.
2.3
Echo and print are two very different PHP functions. This part of the tutorial will describe exactly the difference between these two statements.

Part 3 - The basics

PartName
3.1
This article in my tutorial on PHP covers functions in PHP.
3.2
Working with variables and constants is a crucial part of an programming language and PHP is no exception.
3.3
This article in my tutorial on PHP covers arrays in PHP.
3.4
Working with forms and variables is a crucial part of the web, in particular with PHP.
3.5
This part of the tutorial will discuss how to operate on strings appropriately in PHP.
3.6
This article covers mathematics in PHP. Maths is a huge part of any programming language and with web technologies getting more popular, cryptography using mathematical functions is becoming more commonplace.
3.7
This article in my tutorial on PHP covers the real world concept of dates in PHP.
3.8
This article in my tutorial on PHP covers how to read and write files with PHP.

Part 4 - Controlling the flow of a program

PartName
4.1
This article in my tutorial the PHP tutorial covers conditional statements.
4.2
This article in my tutorial the PHP tutorial covers if statements.
4.3
This article in my tutorial the PHP tutorial covers loops.
4.4
This article in my tutorial on PHP covers switch (case) statements.
4.5
This article in my tutorial on PHP covers error handling statements.

Part 5 - Advanced PHP

PartName
5.1
This article in my tutorial on PHP covers modular PHP.
5.2
This article in my tutorial on PHP covers sending emails with PHP.
5.3
This article in my tutorial on PHP covers HTTP headers in PHP.
5.4
This article in my tutorial on PHP covers superglobals in PHP.
5.5
This article in my tutorial on PHP covers making dynamic sites.
5.6
This article in my tutorial on PHP covers transferring files using PHP.

Part 6 - MySQL and PHP

PartName
6.1
This article in my tutorial on PHP covers the basics of using PHP and MySQL.
6.2
This article in my tutorial on PHP covers using MySQL queries in PHP.
6.3
This article in my tutorial on PHP covers preparing MySQL queries in PHP.