php #1
write, test and debug (of necessary) PHP scripts for the specifications that follow. For exercise 1 through 7, write functions and the code to test them.
1 parameter: an array of strings.
return value : a list of the unique strings in the parameter array.
2 parameter: an array of numbers.
return value: The average and median of the numbers in the parameter array.
3 parameter: an array of strings
return value: A list of the three strings that occur most frequently in the parameter array.
4 parameter: an array of numbers (pass by value) and two arrays (pass by reference)
return value: None
Result: The first pass by reference parameter must have the values of the given array that are greater than zero; the second must have the values that are less than zero.
10 years ago
40
Purchase the answer to view it

- part_1.zip