PHP: Sum of two number

PHP: Sum of two number

February 5, 2023

In PHP, you can add two numbers by using the addition operator +. For example:

$num1 = 10;
$num2 = 20;
$sum = $num1 + $num2;

echo $sum; // Outputs 30

 

Leave A Comment

Avada Programmer

Hello! We are a group of skilled developers and programmers.

Hello! We are a group of skilled developers and programmers.

We have experience in working with different platforms, systems, and devices to create products that are compatible and accessible.