########################################## # # PHP (3): In class exercise # ########################################## #################################################### # ALL OF THE FILES SHOULD BE SAVED AS .php # Try to add enough comments in your code. #################################################### ###### Question No. 1 ################################################## #################################################### # # Consider you have the following variables: # x = 3 and y = 5 # # Check for all possible conditions comparing the # x and y in a numerical way (=, >, < and so on) # #################################################### ###### Question No. 2 ################################################## #################################################### # # Consider you have the following array: # ('Peter', 'Robin', 'Brian', 'Mark') # # Go through all of the elements by a loop # and ECHO all of them (do not use print_r) # #################################################### ###### Question No. 3 ################################################## #################################################### # # Based on your previous code make a function that # can ECHO all elements of any given array # #################################################### ###### Question No. 4 ################################################## #################################################### # # Consider you have the following array: # (0,3,6,4,7,2,0,3,8,5,6,9,2,3,5,7,9,0,1,4,5,6,3,2) # # Go through all of the elements by a loop # and ECHO all of them (do not use print_r) # but whenever it was 0 echo ZERO instead of 0 # # Make a function to do it... # #################################################### ###### Question No. 5 ################################################## #################################################### # # Consider you have the following array: # (0,3,6,4,7,2,0,3,8,5,6,9,2,3,5,7,9,0,1,4,5,6,3,2) # # Find the MAX element in the array by using loops, # conditions and functions. Echo the steps... # #################################################### ###### Question No. 6 ################################################## #################################################### # # Consider you have the following array: # (2, 4, 2, 0, 1, 5, 10, 1) # # Sort the array without using the built-in sort() # function. You know that your minimun element is # 0 and you don't have elements less than 0. # This question might be hard to code!!! # ####################################################