So in PHP, how would you write a function "that takes three numbers as arguments"??
Surely you would write
function maxOfThree( $a, $b, $c )
And the if ( )
statement in PHP is essentially identical to if ( )
Look here: http://www.codingforums.com/rules.htm
And look especially at rule 1.5
JMrkr really should not have given you the answer as he did. How will you learn if you get the answers from us? How will you perform when it comes time to take a test and we aren't there to help you? And what will you do if your instructor is clever enough to come visit forums such as this and find out that you are getting the answers without doing the work? (Were I your instructor and found this out, you'd be in severe danger of failing the class.)