Guided Notes
Introduction to PHP
Embedding logic inside HTML, and how requests flow.
PHP is a server-side scripting language designed to be embedded directly in HTML using `<?php ... ?>` tags — the server runs the PHP, then sends plain HTML to the browser.
Variables always start with a dollar sign: `$name = "Ada";`. PHP is loosely typed — a variable can hold a string, then later a number, without a declaration.
Every request PHP handles can read data via superglobals like `$_GET` and `$_POST` — arrays PHP fills in automatically from the incoming request.