Help fix script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xcaliberse
Forum Newbie
Posts: 1
Joined: Fri Apr 04, 2008 11:58 pm

Help fix script

Post 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>
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Help fix script

Post by Christopher »

Besides no "<body>" tag and the stray "11:" at the end of the function -- what is the problem?
(#10850)
Post Reply