Write a PHP program to add two numbers

Description:

Write a program to perform sum or addition of two numbers in PHP programming. You can use PHP Variables and Operators

PHP Program to add two numbers:

<?php  
$first = 15;  
$second = 10;  
$sum = $first + $second;  
echo "Result: ".$sum;  
?>
Tutorials Class - Output Window

Result: 25



Learn more about the similar topics:
Tutorials
PHP Operators
Exercises & Assignments
Write a PHP program to add two numbers
Write a PHP program to check whether a number is positive, negative or zero
Interview Questions & Answers
What is the difference between == and === Operators in PHP?