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>
Help fix script
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Help fix script
Besides no "<body>" tag and the stray "11:" at the end of the function -- what is the problem?
(#10850)