« Previous
Next »
PHP HOME
Welcome to the iwantcoding.com PHP Tutorial. The sidebar takes you from <?php echo "hello"; ?> through forms, OOP, file handling, MySQL/PDO, and the modern PHP ecosystem.
Run real PHP right now
The PHP Editor runs an actual PHP interpreter (via php-wasm) in your browser — no install, no server.
Open the PHP Editor »Recommended starting path
- Intro + Install.
- Syntax, variables, echo / print.
- Data types, strings, operators.
- Control flow — if/else, for, foreach.
- Functions, arrays, superglobals.
- Forms + sessions.
- OOP — classes, inheritance, interfaces.
- PDO — talk to a database.
- Capstone — claim your certificate.
What's on every lesson page
| Section | What it does |
|---|---|
| Lesson body | Explanation with figures or tables. |
| Example | A runnable snippet. Click Try it Yourself » to open in the editor. |
| Exercise | Fill-in-the-blank to lock in the concept. |
| Test yourself | 3-question quiz. |
| Mark complete | Updates the sidebar progress bar. |
Tip: This tutorial targets modern PHP (8.x) — match expressions, enums, readonly properties, constructor property promotion, named arguments, and typed properties. PHP 5.x patterns are flagged where you'll still encounter them.
Example
Exercise
Open the in-browser editor via the green CTA.
Click:
The CTA on the home page.
Test yourself
« Previous
Next »
Discussion
Loading…