PHP Introduction
PHPPHP (Hypertext Preprocessor) is a server-side scripting language. It runs on the server and generates HTML that is sent to the browser.
PHP powers WordPress, Facebook (originally), Wikipedia, and millions of websites.
Why Learn PHP?
- Easy to learn for beginners
- Huge job market in India (WordPress, Laravel)
- Free and open source
- Works on all operating systems
PHP Code Basics
PHP code is written inside <?php ... ?> tags. It can be embedded inside HTML.
Example — PHP
<?php
echo "Hello, World!";
echo "<br>";
echo "I am learning PHP!";
?>
Result
Hello, World!
I am learning PHP!
I am learning PHP!