Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $goru = 2000;
- $chagol = 3000;
- $hash = 4000;
- $murgi = 5000;
- $biral = 6000;
- $max = max($goru,$chagol,$hash,$murgi,$biral); //highest number
- if( $goru == $max ){
- echo "Maximum amount is Goru: {$goru}";
- }elseif($chagol == $max){
- echo "Maximum amount is Chagol: {$chagol}";
- }
- elseif($hash == $max){
- echo "Maximum amount is Hash: {$hash}";
- }
- elseif($murgi == $max){
- echo "Maximum amount is Murgi: {$murgi}";
- }elseif($biral == $max){
- echo "Maximum amount is Biral: {$biral}";
- }
- else{
- echo "An Unexpected Error occured";
- }
- /*************************
- * created by Touhid
- * touhid@rafusoft.com
- ************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement