🐘 The PHP Universe 🐘

Learn PHP β€” dynamic websites and server-side magic! ⚑

πŸ’‘ What Is PHP?

PHP is a server-side scripting language widely used for building dynamic websites and web applications.

β€œPHP makes websites dynamic and interactive.”

🧩 Basics

Variables, strings, and printing output:


<?php
$name = "Dyl";
$age = 15;

echo "Name: $name\n";
echo "Age: $age\n";
?>
  

βš™οΈ Functions

Reusable blocks of code:


<?php
function add($a, $b) {
    return $a + $b;
}

echo "Sum: " . add(2,3);
?>
  

πŸ” Loops

Repeating tasks with loops:


<?php
for($i=0; $i<5; $i++) {
    echo "Loop $i\n";
}
?>
  

πŸ•ΉοΈ Try PHP Yourself

Type PHP code below. This is a **simulated runner**β€”only prints lines with echo.

Output will appear here...

*Simulated output (real PHP requires a server)