Adding Two Numbers Program :-
We use $ symbol to declare variable and add two variables. we take third number to store result in third variable. Below is the simple PHP program to add two numbers.
<?php $first=30; $second=20; $third=$first + $second; echo "Two Numbers Sum: ".$third; ?>
Output :-
Two Numbers Sum: 50
Note: Only a member of this blog may post a comment.