From the course: PHP for WordPress

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Challenge: Write your own function to compare two numbers

Challenge: Write your own function to compare two numbers

From the course: PHP for WordPress

Challenge: Write your own function to compare two numbers

(upbeat music) - [Narrator] Now it's your turn to write a function. This function should accept two integers as arguments, compare them, and send back the bigger one. Remember to write the function and then write a way to test it, much like we did with the palindrome function.

Contents