iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up
« Previous

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

  1. Intro + Install.
  2. Syntax, variables, echo / print.
  3. Data types, strings, operators.
  4. Control flow — if/else, for, foreach.
  5. Functions, arrays, superglobals.
  6. Forms + sessions.
  7. OOP — classes, inheritance, interfaces.
  8. PDO — talk to a database.
  9. Capstone — claim your certificate.

What's on every lesson page

SectionWhat it does
Lesson bodyExplanation with figures or tables.
ExampleA runnable snippet. Click Try it Yourself » to open in the editor.
ExerciseFill-in-the-blank to lock in the concept.
Test yourself3-question quiz.
Mark completeUpdates 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

Example
<?php
echo 'Hello, PHP!';
Try it Yourself »

Exercise

Open the in-browser editor via the green CTA.

Click:

Test yourself

Q1. The iwantcoding.com PHP editor runs PHP via…
Q2. Per-lesson quiz length is…
Q3. Modern PHP referenced throughout is version…

Discussion

Loading…

« Previous