What are the differences between instructions, commands, and functions in PHP?

Instructions in PHP refer to individual lines of code that tell the interpreter what to do. Commands are specific PHP statements that perform a particular action or task. Functions are reusable blocks of code that can be called multiple times within a program to perform a specific task.

// Example of an instruction
echo "Hello, World!";

// Example of a command
$variable = 5;

// Example of a function
function addNumbers($num1, $num2) {
    return $num1 + $num2;
}