php online course free

Welcome to the free interactive PHP tutorial.

Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn the PHP programming language.

There is no need to download anything – just click on the chapter you wish to begin from, and follow the instructions.

Good luck!

Note: is still under construction – If you wish to contribute tutorials, please click on Contributing Tutorials down below.

Learn the Basics

Contributing Tutorials

Read more here: Contributing Tutorials Start Exercise

What is PHP?

PHP (Hypertext Preprocessor) is a popular open source scripting language. It is particularly well suited for web development and much more. PHP is also a server-side scripting language which means that the code is executed in the server.

What can you do with PHP?

PHP has a lot of usage aside from creating web pages. The following are some of them:

  • Security – using PHP, developers can implement user authentication for web applications.
  • Database-friendly – PHP supports a lot of databases including the most popular ones such as MySQL, MongoDB, Oracle, MS SQL, etc.
  • REST and web services – with native support for JSON and XML, creating web services with PHP should be a breeze.
  • Ecommerce and CMS – with most CMS written in PHP, developers can create and manipulate themes and plugins easily, making websites and ecommerce platforms more efficient.
  • System scripting – using PHP’s command line interpreter, system and site administrators can perform maintenance tasks on servers.

Why use PHP?

  • Popularity – because of PHP’s popularity, it has created a huge community. With huge community comes easier and faster support. Documentation is also very extensive.
  • Free – as an open-source software, PHP is free to use, thus cutting the development budget.
  • Database compatibility – with PHP supporting a wide range of databases, developers are not restricted with their choice of databases.
  • Cloud services – Most projects today use cloud computing platforms such as AWS. PHP applications are supported by these cloud services, making it easier to integrate and deploy on cloud servers.

Requirements for this tutorial

Before proceeding with this PHP tutorial, you should already have basic knowledge with HTML, CSS and Javascript.


PHP Basics

PHP Advance


PHP Functions and Methods

Why Learn PHP?

PHP is a widely used server-side programming language that’s become increasingly fast and powerful over the years. PHP works well with HTML and databases, making it a great language for anyone interested in building dynamic web applications.

Take-Away Skills

In this course, you’ll be exposed to fundamental programming concepts in PHP.

Note on Prerequisites:

Some basic HTML is helpful before taking this course.

EarnCertificateof completion with 

Join45,000,000+Codecademy learners

Time to Complete25 Hours


Learn HTML

Codecademy courses have been taken by employees at

Google Logo
Facebook Logo
IBM Logo
Dropbox Logo
  1. 1Getting Started with PHPLearn how PHP is used in modern web development to create dynamic web pages for visitors.View DetailsStart
  2. 2Learn PHP VariablesLearn about PHP variables and the string and number data types.View DetailsStart
  3. 3Introduction to Functions in PHPGet started learning about functions in PHP so you can create your own reusable blocks of code.View DetailsStart
  4. 4PHP Built-in FunctionsPHP contains built-in functions for completing common (and some niche) tasks. This course will teach you how to find and use functions.View DetailsStart
  5. 5Learn PHP ArraysLearn about PHP ordered and associative arrays and how this data type is used to store, access and manipulate data.View DetailsStart
  6. + 5 more lessons


Portfolio projects that showcase your new skillsPro Logo

About this Free Certification Course

In this course, you will learn about the basic concepts of PHP. You will start this course by knowing what PHP is, its syntax along with applications. Moving ahead you will learn the installation of PHP and essential concepts involved in it such as comments, variables and different data types. Then we will jump to control statements such as if, if-else, switch-case and loops. You will also learn about the types of operators available in the PHP. Then, you will see some functions that are used to manipulate strings. Lastly, you will learn important concepts such as functions and arrays.


  • Basics of PHP

Course Syllabus


Introduction to PHPPHP InstallationComments in PHPVariables in PHPDatatypes in PHPControl Statements in PHPOperators in PHPStrings in PHPFunctions in PHPArrays in PHP


Stress-test your knowledge with quizzes that help commit syntax to memoryPro Logo

Madelyn from Pinterest

“I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.”— MADELYN, PINTEREST

About the author

Study on Scholarship Today -- Check your eligibility for up to 100% scholarship.