adding 2 numbers in php code example
Example 1: add two numbers in php
<?php
$x=15;
$y=30;
$z=$x+$y;
echo "Sum: ",$z;
?>
Example 2: sum two numbers in php
<?php
$x=10;
$y=20;
$z = $x + $y;
echo "Sum of x and y : ". $z;
?>
<?php
$x=15;
$y=30;
$z=$x+$y;
echo "Sum: ",$z;
?>
<?php
$x=10;
$y=20;
$z = $x + $y;
echo "Sum of x and y : ". $z;
?>