<html>
<! DefaultValue.php                                           >
<! Chapter 7, Oracle Database XE PHP Web Programming          >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This demonstrates defining a function with two formal      >
<! parameters with default values.                            >
<head>
<title>
  Chapter 7 : DefaultValue.php
</title>
</head>
<body>
<?php
  // Call function without actual parameters.
  add_numbers();

  // Call function with two actual parameters.
  add_numbers(2,2);

  // Define a funtction that adds two numbers.
  function add_numbers($a = 0,$b = 0)
  {
    // Add two numbers and print the result.
    print "[(\$a + \$b)][".($a + $b)."]<br>";
  }
?>
</body>
</html>
