🔤Hypertext Preprocessor (PHP)
Also known as PHP
A language that runs on the web server. It builds each page before it is sent.
Think of it like
Think of it like a cook behind a café counter. You order, and the cook makes your plate before it comes out.
Example
A WordPress blog uses PHP to fetch Emma's ten latest posts. Then it builds the home page.
Why it matters
A huge number of websites still run on PHP. Fixing or moving any of them means reading it.
Definition
Example code
php
<?php
echo "Hello, world!";Common mistake
Key takeaways
- 1Runs on the server. The browser never sees the code.
- 2Builds pages. It fills a page with data, then sends it.
- 3Runs WordPress. Much of the web depends on it.