Video is ready, Click Here to View ×

Php Basic Tutorial
PHP is one of the most useful languages to know and is used everywhere you look online. In this tutorial, I start from the beginning and show you how to start writing PHP scripts.

The video covers the software you need to get started, data types, outputting data, variables, concatenating strings, operators, if statements, HTML forms, arrays and loops.

Check out my Learn HTML in 12 Minutes video for a quick introduction to HTML, which will be useful before trying to understand this tutorial:

Video is ready, Click Here to View ×

Learn JavaScript in 12 Minutes

Set Up a Local Web Server
For Mac:
For Windows:

Recommended Text Editors
For Mac:
For Windows:
At 18:30 I made a mistake in this video by accidentically combining Procedural PHP with Object Oriented PHP.
Please don’t turn off “annotations” so you can see the “fix” for what you need to write instead once I get to it in the video 🙂
Get the Cheat Sheet Here :

Learn HTML in 15 Minutes :

Best PHP book :

Support Me on Patreon :

In this video tutorial I’ll teach pretty much the whole PHP programming language in one video. I have received this tutorial request many times lately so I hope you enjoy it. The cheat sheet can be found below the video.

I cover quotes, comments, date(), variables, data types, getting data from HTML, heredoc, constants, arithmetic, shortcuts, reference operators, comparison operators, if, elseif, else, echo, printf, ternary operator, switch, while, for, foreach, arrays, strings, and much more.
This is an introduction to PHP. It is a part of a series of complete tutorials on learning PHP as an absolute beginner. If you’re interested in becoming a professional PHP developer and don’t have any prior programming experience these tutorials might help you on the fast track to becoming a professional PHP programmer.

Tutorial 1:

In this tutorial I will cover the basics such as what is PHP, some past, present and future notes on PHP and what it’s used for as well as how it works. We’ll also touch on a few topics to be discussed in further detail in the coming tutorials. Please feel free to leave your comments, questions, suggestions.

The slides are available at