Page 1 of 1

Help fix script

Posted: Fri Apr 04, 2008 11:59 pm
by xcaliberse
Hi, how can i fix this script?

<html>
<head>
<title>6.4</title>
</head>
<?php
function addNums( $firstnum, $secondnum; )
{
$result = $firstnum + $secondnum;
return $result;11: }
print addNums(3,5);
//will print "8"
?>
</body>
</html>

Re: Help fix script

Posted: Sat Apr 05, 2008 1:48 am
by Christopher
Besides no "<body>" tag and the stray "11:" at the end of the function -- what is the problem?