Write a PHP code to: Create the following two dimensional array $students : ID Name Score 100 Ali 76 200 Khaleed 33 300 Fatema 89 400 Sumaya 45 Write the function nbFail($list) that takes a...


Write a PHP code to:



  1. Create the following two dimensional array
    $students:

































ID




Name




Score



100



Ali



76



200



Khaleed



33



300



Fatema



89



400



Sumaya



45





  1. Write the function
    nbFail($list)
    that takes a multidimensional array
    $list
    as parameter and returns the number of failed students (student fails if the score is less than 50).

  2. Write the required PHP code to display the array
    $students
    in an HTML table (using foreach statement) and the number of failed students and passed students (use the function defined in question b).




Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here