<?php
$no1=3;
$no2=2;
$result=$no1-$no2;
echo "The subtraction of two numbers is: $result";
?>
Output: The subtraction of two numbers is: 1
UNIT-304
Elementary Server Side Scripting through PHP
- PHP Introduction
- How to save PHP page
- PHP variables and their naming conventions
- PHP program to find maximum of 5 numbers
- PHP program to find minimum of 5 numbers
- PHP program to find sum of 2 numbers
- PHP program to find subtraction of 2 numbers