PHP · Basic to Pro

PHP Programming — Full Course

This course takes you from your first echo statement to writing the kind of PHP that powers WordPress itself — namespaces, Composer, traits, and a small working REST API.

Every lesson is written, not filmed: read at your own pace, run the examples with PHP’s built-in server, and use the Back and Forward buttons to move through the course in the order it was designed.

What you will learn

  • Core syntax, variables, and string interpolation
  • Operators, conditionals, and loops
  • Functions, indexed arrays, and associative arrays
  • Handling form submissions safely with superglobals like $_POST
  • Object-oriented PHP: classes, __construct, and $this
  • Connecting to a database safely with PDO and prepared statements
  • Namespaces, Composer, and autoloading
  • Traits and abstract classes
  • Building a small JSON REST API endpoint

Who this is for

No prior programming experience required. Especially useful if you want to understand — or eventually contribute to — the language WordPress and this very site are built on.

Start Course → Continue Where You Left Off →