PHP Basics
Get started with PHP: installation, basic syntax, error handling, and essential tools

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


PHP is a server-side scripting language that’s widely used for web development. In this unit, you’ll learn how to set up PHP, write your first programs, handle errors and exceptions, and use essential tools like Composer for package management.

Lessons in this unit:

0: ▶︎ Introduction
1: How to set up PHP
2: How to create your first PHP program
3: How to deal with errors in PHP
4: How to use exceptions in PHP
5: How to use Composer and Packagist in PHP
6: How to work with files/folders in PHP
7: PHP print var_dump to error_log