| Ex No: 4 | Write a program to Process Array |
|---|---|
| Aim: | To perform array processing using php |
| Algorithm | |
| Step1: Design a webpage to get five numbers. | |
| Step2: On form submit check if array elements are set and not empty | |
| A) Get array value from POST method and assign large value as 0. | |
| B) Use foreach looping statement to cycle through array elements as x | |
| i) Check if x is greater than large value. | |
| a) If true then assign large value as x. | |
| c) Display the elements of the array using for loop. | |
| E) Display the largest value from large variable. | |
index.htmlex4.php
|
|
| Result: | Thus a webpage is designed using php to perform Array Processing. |