php assignment

  1. Arrays allow you to assign multiple values to one variable. For this PHP exercise, write an array variable of weather conditions with the following values: rain, sunshine, clouds, hail, sleet, snow, wind. Using the array variable for all the weather conditions, echo the following statement to the browser:

We’ve seen all kinds of weather this month. At the beginning of the month, we had snow and wind. Then came sunshine with a few clouds and some rain. At least we didn’t get any hail or sleet.

2. Create a page that performs add(), subtract(), multiply() and divide() operations. Request two numbers from the user and then call each as a separate PHP function. Return the appropriate values and then display to the screen

“Order a similar paper and get 20% discount on your first order with us Use the following coupon “GET20”