PHP Introduction
1 min read
What is PHP?
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used, open-source scripting language especially suited to web development. PHP code runs on the server and generates HTML which is sent to the browser.
Why learn PHP?
- It powers a huge share of the web (WordPress, Laravel, this site!).
- It's beginner-friendly but scales to large applications.
- It integrates effortlessly with databases like MySQL.
Your first PHP script
<?php
echo "Hello, World!";
Anything between <?php and ?> is treated as PHP. The echo statement outputs text to the page.