Professional Documents
Culture Documents
Problem 1
Problem 1
Create a string variable called $text with the value "The quick brown fox jumps
over the lazy dog.". Write a PHP function which takes "$text" as an argument to:
Create an array called $numbers containing the numbers 1 to 10. Write a PHP
function which takes the "$numbers" array as an argument to remove the even numbers
from the array and print the resulting array.
Create an array called $grades with the following values: 85, 92, 78, 88, 95. Write
a PHP function which takes "$grades" as an argument to sort the array in descending
order and print the sorted grades as array.