Tool
PHP
The language behind most of the server-rendered web
Learn PHP from syntax to forms, sessions, OOP, and databases — with real, runnable PHP in every chapter.
14
Chapters
36
Hours (estimated)
1
Self-paced
Part-time
About 12 weeks
1 hour a day, 3 days a week
Full-time
About 4 weeks
3 hours a day, 3 days a week
Estimated from 14 chapters (notes, practice, labs, quiz, exercise, and challenge) plus the final exam. Go at your own pace.
Curriculum
14 chapters, each with a tutorial, a live example, a quiz, an exercise, a challenge, and class practice.
- 1
Introduction to PHP
What PHP is, how a request becomes HTML, installing PHP, tags, statements, and comments.
- 2
Variables & Output
Creating variables, naming rules, echo and print, printing with variables inside strings, var_dump, and variable scope.
- 3
Data Types & Strings
PHP's data types, type checking and casting, and the most useful string functions.
- 4
Numbers, Math & Constants
Integers and floats, math functions, rounding and formatting money, float precision, and constants.
- 5
Operators
Arithmetic, assignment, comparison (== vs ===), logical, string, null coalescing, spaceship, and ternary operators.
- 6
Conditionals: if, switch & match
Making decisions with if/elseif/else, switch, and PHP 8's match expression, and writing clear conditions.
- 7
Loops
while, do...while, for, and foreach loops, break and continue, and choosing the right loop.
- 8
Functions
Defining functions, parameters and defaults, type declarations, return values, references, variadics, named arguments, and arrow functions.
- 9
Arrays
Indexed, associative, and multidimensional arrays; adding, removing, and searching; sorting; and the most useful array functions.
- 10
Superglobals & Form Handling
$_GET, $_POST, $_SERVER and friends, processing forms, validating and sanitizing input, and preventing XSS.
- 11
Dates, Files & JSON
Working with dates and time zones, including files, reading and writing files, uploads, and encoding and decoding JSON.
- 12
Cookies, Sessions & Error Handling
Remembering users with cookies and sessions, login flows, exceptions with try/catch/finally, custom exceptions, and error reporting.
- 13
Object-Oriented PHP
Classes and objects, constructors and promoted properties, visibility, inheritance, abstract classes, interfaces, traits, static members, enums, and namespaces.
- 14
Databases with PDO
Connecting with PDO, prepared statements, CRUD operations, fetching results, transactions, and preventing SQL injection.
PHP is free to study, self-paced. Pass the final exam to earn an optional Certificate of Completion for $40.