Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Addition of Two Numbers in PHP

Tags: number program
Addition Of Two Numbers In PHP
After writing a  hello world  Program, I will make a  program that will show that how to add two numbers in PHP, which is very important for beginners to learn PHP.

$a=10;                            //Assign 10 to  variable a
$b=15;                         // Assign 15 to  variable b
$c=$a+$b;                   // Add a and b and assigns to c
echo $c;                         // Print c
Otput: 25

You can check this program using online PHP interpreter.

To know how was it executed, see the video.

This post first appeared on INTERNET MARKETING AND BLOGGING, please read the originial post: here

Share the post

Addition of Two Numbers in PHP


Subscribe to Internet Marketing And Blogging

Get updates delivered right to your inbox!

Thank you for your subscription