SA2 - PHP Arrays and Predefined Functions
SA2 - PHP Arrays and Predefined Functions
TECHNICAL-SUMMATIVE ASSESSMENT
2
PHP ARRAYS AND PRE-DEFINED FUNCTIONS
Section:
Professor:
I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE
• Design, implement and evaluate computer-based systems or applications to meet desired needs and
requirements.
1. Using ARRAYS, create a fruit directory that will show the image, name, description and facts about
the fruit (create at least 10 fruits sort in alphabetical order). Implement a HTML and CSS code for the
structure and design of the webpage. Please see the sample output below.
2. USING USER DEFINED FUNCTION. Create a formula for each volume of shapes (Cube, Right
Rectangular Prism, Prism or Cylinder, Pyramid or Cone and Sphere) then display the result. Please
see the sample below:
1. What is Array?
2. What is function in PHP?
3. Differentiate the one-dimensional array to multi-dimensional array
4. Describe the difference between Global Variable to Local Variable
5. What is the difference between function without parameter and a function with parameter?
6. What are the different common predefined functions? Describe each and give example
7. Is it useful to use an include or require function on a webpage? Why?
8. What is the importance of a function?
9. What is the importance of a string function?
VIII. REFERENCES
1. https://www.w3schools.com/css/
2. https://www.w3schools.com/html/
3. https://www.w3schools.com/php/php_variables.asp
4. https://www.w3schools.com/php/php_arrays.asp
5. https://www.w3schools.com/php/php_arrays_indexed.asp
6. https://www.w3schools.com/php/php_arrays_associative.asp
7. https://www.w3schools.com/php/php_arrays_multidimensional.asp
8. https://www.w3schools.com/php/php_arrays_sort.asp
9. https://www.w3schools.com/php/php_functions.asp
10. https://www.w3schools.com/php/php_constants.asp
11. https://www.w3schools.com/php/php_includes.asp
12. https://www.w3schools.com/php/php_string.asp