Add two numbers Program in PHP
Advertisements
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
Google Advertisment