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
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
-
-
-
-
-
(Locked)
What are functions?6m 39s
-
(Locked)
Using functions in WordPress2m 49s
-
(Locked)
Helpful PHP functions6m 17s
-
(Locked)
Writing your own functions7m 2s
-
(Locked)
Challenge: Write your own function to compare two numbers23s
-
(Locked)
Solution: Write your own function to compare two numbers4m 9s
-
(Locked)
-
-