Practice on PHP Functions
Make a function that will accept a number as a parameter and return an array of its divisors.
Make a function that will accept two numbers as parameters and return an array of their common divisors.
Make a function that will accept a number as a parameter and return the sum of its digits.
Make a function that will return the current day of the week as a word.
Make a function that will get a date as a parameter, and return the day of the week as a word, corresponding to that date.
Make a function that will accept seconds as a parameter, and return the number of days, corresponding to those seconds.
Make a function that will get a year as a parameter and check, whether it is a leap year or not.
Make a function that will accept a number as a parameter and check, whether it is prime or not.