On September 1, 2022, GitHub Learning Lab will shut down.
Read more on the GitHub blog and check out GitHub Skills for courses backed by GitHub Actions.
See an up-to-date option for this page.

Introduction to PHP

PHP is a server-side programming language that can insert dynamic code into your HTML. PHP is used in popular content management systems, such as WordPress and Drupal.

Start free course Join 2172 others!

PHP Intro Tutorial Course Repo

This is the repo which runs the php intro tutorial on Github learning lab.

Steps to complete this course 9
  1. Installation

    Install server and text editor

  2. Setting up PHP

    Set up PHP code in HTML

  3. Creating PHP Variables

    Create PHP Variables inside HTML

  4. Building Array Variables

    Store variables in array grouping

  5. Building Loops

    Build a sequence of instructions repeated until a condition is met

  6. Conditional Statements

    Conditionally run different blocks of code

  7. Using Math

    Use math operators to calculate values

  8. Functions

    Functions allow you to re-use blocks of code by calling them

  9. Conclusion

    Store variables in array grouping

Share Introduction to PHP
Average time to complete

210 minutes


All public courses on Learning Lab are free.

Latest release

Users who took this course also took

What is GitHub Learning Lab?

Learn new skills by completing fun, realistic projects in your very own GitHub repository.

Ready to start learning?

Start Introduction to PHP