← PHP learning pathPHP · Module 1 of 10
Introduction to PHP
PHP is a server-side language that powers much of the web.
📖 Key ideas
- PHP runs on the server and outputs HTML.
- Powers WordPress, Laravel apps and many websites.
- Code goes inside <?php ... ?> tags.
- Run locally with XAMPP/WAMP or php -S localhost:8000.
- Current versions: PHP 8.x with big performance gains.
💡 Real-life example: PHP is a kitchen behind the restaurant: it cooks the page on the server before sending it to your table.
Server-sideRuns on the web server
<?php ?>PHP code tags
XAMPPLocal Apache + MySQL + PHP bundle
echoOutputs text