What are some key terms that beginners should be familiar with in PHP?

Beginners in PHP should be familiar with key terms such as variables, data types, functions, loops, and conditional statements. Understanding these concepts is essential for writing and understanding PHP code.

// Example of declaring a variable and assigning a value
$name = "John";

// Example of a conditional statement
if ($name == "John") {
    echo "Hello, John!";
} else {
    echo "Hello, stranger!";
}

// Example of a loop
for ($i = 0; $i < 5; $i++) {
    echo $i;
}

// Example of a function
function greet($name) {
    echo "Hello, " . $name . "!";
}

greet("Alice");