How to do calculations in PHP

binary-1414317_1920

 

 

Follow this following steps to do calculations in PHP

<?php

//Creating two var //

$a=10;

$b=10;

//Declaring a and b variable to calculate the sum of a and b //

echo $a+$b;

?>

Save this file as math.php

renewdev

I Am Developer And Want To Share My Knowledge With The World..:) ;) . I Have Another Social Networking Website (Renewchat) And For Designing Or Developing Of Website Purpose You Can Contact Me On Renew Coder .. :) ;)

Leave a Reply

Your email address will not be published. Required fields are marked *