Ph

PHP

beginner

The language that runs most of the web.

PHP powers roughly three-quarters of all websites with a known server language — WordPress alone is over 40% of the web. Modern PHP (8.x) is fast, typed, and pleasant, a world away from its messy reputation. If you want web development jobs, PHP is a quietly enormous market.

Web BackendsWordPressAPIsE-commerceServer-side Rendering
0%
0/8 lessons

Setup

Install PHP and you get a built-in development web server — no Apache or nginx needed to learn.

Bash
winget install PHP.PHP.8.3
# Or grab a zip from https://windows.php.net

php --version

# Run a file:
php hello.php

# Start the built-in dev server in a folder:
php -S localhost:8000

Lessons

1
Hello, PHP
PHP's superpower and its quirk in one: PHP files are HTML files with code embedd
2
Types, Conditions & Loops
PHP is dynamically typed but has grown a real type system. Learn the comparison
3
Arrays — PHP's Swiss Army Knife
PHP has one collection type doing the job of lists, dictionaries, sets, and tupl
4
Functions & Type Declarations
Modern PHP functions look almost like TypeScript: typed parameters, return types
5
Classes & Modern OOP
PHP's object system is genuinely good now. Constructor property promotion, reado
6
Composer & the Ecosystem
Composer is PHP's npm — dependency manager, autoloader, and the gateway to 400,0
7
Handling Web Requests
PHP's home turf: a form posts to your script, you read the input, talk to a data
8
PHP Cheatsheet
Modern PHP 8 syntax, arrays, and classes on one page.