WAP to Find maximum number from an array/program find max number

preview_player
Показать описание
Hi Friends,
in this video, I am going to write a program for find maximum number from an array using PHP language.

What is array?
Answer: Array is nothing but collection of items. In PHP we declare array as follow.
$arr = array();
$arr = array(34,45,6,278,100,150,20,5,10,200); //initialization of array
Find maximum from an array
output is 278 is max number from given array.
------------------------------------------
Below are the links of other basic programs you can learn.
1)Fibonacci Series
2)Prime number
3)Factorial of given number
4)Find odd/even number
5)Find given year is leap year or not
6)Reverse number
7)Print number 1-10 without using loop statement
8)Swap 2 numbers without using third variable
9)Find maximum number from an array
10)Find 2nd maximum number from an array
--------------------------------------------------
Рекомендации по теме
welcome to shbcf.ru