Add two numbers Program in PHP


Prev Tutorial Next Tutorial

Add tow numbers Program in PHP

In php we declare variable using $ sign and add two variables value and store result in third variable.

Add two numbers Program in PHP

<?php
  
$a=10;
$b=20;
$c=$a+$b;

echo "Sum: ",$c;

?>

Output

	
Sum: 30

Prev Tutorial Next Tutorial

Download Projects

Yahoo Advertisements
Free Classified Site – Bedpage

Adsense Ads Advertisements