PHP • 13 lessons

Make pages dynamic on the server.

The server-side language that powers most of the web.

13 lessons · 13 live examples · 100% free
Preview — PHP
<?php
$name = "HtmlRunner";
echo "Hello, $name!";
?>
phpmysqlsessions
PHP tutorial

Learn PHP — server power for the web

PHP still powers most of the web. This 12-lesson track is a free PHP tutorial for beginners with live code.

What is PHP?

What is PHP? A server language for dynamic sites. Our What is PHP explains syntax and why PHP + MySQL still dominates.

PHP tutorial — syntax to MySQL

Learn Syntax, Variables, Arrays and MySQL. Each lesson has a runnable example.

  • php tutorial • learn php • what is php
  • php basics • php for beginners
Jiyasrul Alom Juwel
Jiyasrul Alom Juwel
Founder, HtmlRunner — building free tools for everyone. About the author →
f in G
Curriculum

PHP curriculum

Follow in order or jump to any lesson. Every lesson has a live editor.

Phase 1: Getting Started 5 lessons

First 5 lessons

01What is PHP?→02Install PHP→03Syntax and Echo→04Variables→05Arrays→
Phase 2: Core Skills 5 lessons

Next 5 lessons

06Strings→07Conditions→08Loops→
09Functions→10Forms and POST→
Phase 3: Advanced 3 lessons

Final 3 lessons

11Sessions→12PHP and MySQL→13PHP and JSON→
Start Lesson 1 → Open Playground
FAQ

PHP FAQ

PHP is a server language for dynamic sites, powering most of the web.

Yes for server code — see PHP Install. HTML/CSS/JS need no install.

Yes — it powers most CMS and is great for forms, sessions and MySQL.

Ready for more?

Explore other tracks or build in the Playground.

→ All Tracks