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

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements