<?php
$no1=3;
$no2=2;
$no3=5;
$no4=6;
$no5=7;
echo max($no1, $no2, $no3, $no4, $no5);
?>
Output: 7
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